jl777 8 years ago
parent
commit
9dd5740efe
  1. 4
      basilisk/basilisk.c

4
basilisk/basilisk.c

@ -789,7 +789,9 @@ void basilisk_p2p(void *_myinfo,void *_addr,char *senderip,uint8_t *data,int32_t
{ {
if ( strcmp(type,"PIN") == 0 && myinfo->NOTARY.RELAYID >= 0 ) if ( strcmp(type,"PIN") == 0 && myinfo->NOTARY.RELAYID >= 0 )
{ {
portable_mutex_lock(&myinfo->messagemutex);
basilisk_ping_process(myinfo,_addr,ipbits,data,datalen); basilisk_ping_process(myinfo,_addr,ipbits,data,datalen);
portable_mutex_unlock(&myinfo->messagemutex);
} }
} }
else else
@ -885,7 +887,9 @@ void basilisks_loop(void *arg)
} }
} }
//portable_mutex_unlock(&myinfo->allcoins_mutex); //portable_mutex_unlock(&myinfo->allcoins_mutex);
portable_mutex_lock(&myinfo->messagemutex);
basilisk_ping_send(myinfo,notary); basilisk_ping_send(myinfo,notary);
portable_mutex_unlock(&myinfo->messagemutex);
} }
} // else printf("not notary %p %d\n",notary,myinfo->NOTARY.RELAYID); } // else printf("not notary %p %d\n",notary,myinfo->NOTARY.RELAYID);
else if ( myinfo->expiration != 0 ) else if ( myinfo->expiration != 0 )

Loading…
Cancel
Save