Browse Source

Test

etomic
jl777 8 years ago
parent
commit
5157eef1d8
  1. 3
      iguana/exchanges/LP_socket.c

3
iguana/exchanges/LP_socket.c

@ -541,6 +541,8 @@ int32_t LP_recvfunc(struct electrum_info *ep,char *str,int32_t len)
} }
} }
idnum = juint(strjson,"id"); idnum = juint(strjson,"id");
if ( 0 ) // crashes cipi's node
{
portable_mutex_lock(&ep->pendingQ.mutex); portable_mutex_lock(&ep->pendingQ.mutex);
if ( ep->pendingQ.list != 0 ) if ( ep->pendingQ.list != 0 )
{ {
@ -569,6 +571,7 @@ int32_t LP_recvfunc(struct electrum_info *ep,char *str,int32_t len)
} }
} }
portable_mutex_unlock(&ep->pendingQ.mutex); portable_mutex_unlock(&ep->pendingQ.mutex);
}
if ( item != 0 ) if ( item != 0 )
{ {
// do callback // do callback

Loading…
Cancel
Save