From 72c63273f65bacc26366faaf5655b0e5c73e3efd Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 27 Dec 2016 18:39:41 +0200 Subject: [PATCH] test --- iguana/dpow/dpow_network.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 2a5e67910..62f5f45f9 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -1206,7 +1206,7 @@ int32_t dpow_nanomsg_update(struct supernet_info *myinfo) break; usleep(1000); }*/ - if ( (size= nn_recv(myinfo->dpowsock,&np,NN_MSG,0)) >= 0 ) //i < 100 && + while ( (size= nn_recv(myinfo->dpowsock,&np,NN_MSG,0)) >= 0 && num < 100 ) { if ( size > 0 ) { @@ -1257,8 +1257,6 @@ int32_t dpow_nanomsg_update(struct supernet_info *myinfo) if ( np != 0 ) nn_freemsg(np), np = 0; } //else printf("no packets\n"); - if ( num != 0 ) - return(num); n = 0; if ( myinfo->dexsock >= 0 ) // from servers {