add: } else { LOG(L_INFO,"ERROR:send_res_to_peer: peer is not connected\n");
context: int send_res_to_peer( str *buf, struct peer *p){	lock_get( p->mutex );	if ( p->state==PEER_CONN ) {		if (safe_write( p, buf->s, buf->len)!=-1) {			lock_release( p->mutex);			return 1;		}	}	lock_release( p->mutex);	return -1;}