rem: if (!session->node->connected)
add: if (session->node->state != OPN_NODE_STATE_CONNECTED)
context: void opn_share_refresh(OpnSession *session){	OpnPacket *packet;	Share *share;	Hash *hash;	List *l;	char *bitrate, *freq, *len;	assert(session);	assert(session->node);	if (!session->node->connected)		return;	for (l = OPENNAP->shares; l; l = l->next) {		share = (Share *) l->data;		hash = share_get_hash(share, OPN_HASH);		if (!(packet = opn_packet_new()))			continue;		opn_packet_set_cmd(packet, OPN_CMD_SHARE_ADD);		bitrate = share_get_meta(share, "Bitrate");		freq = share_get_meta(share, "Frequency");		len = share_get_meta(share, "Length");		opn_packet_put_str(packet, share_get_hpath(share), TRUE);		opn_packet_put_str(packet, (char *) hash->data, FALSE);		opn_packet_put_uint32(packet, share->size);		opn_packet_put_str(packet, bitrate ? bitrate : "0", FALSE);		opn_packet_put_str(packet, freq ? freq : "0", FALSE);		opn_packet_put_str(packet, bitrate ? freq : "0", FALSE);		opn_packet_put_str(packet, len ? len : "0", FALSE);				opn_packet_send(packet, session);		opn_packet_free(packet);	}}