From b5fe5f5af50aff1646cb9e64fb7dadc163e1e092 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 7 Jul 2017 16:21:58 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_network.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_network.c b/iguana/exchanges/LP_network.c index f37e3acda..da19a4b10 100644 --- a/iguana/exchanges/LP_network.c +++ b/iguana/exchanges/LP_network.c @@ -120,10 +120,9 @@ void queue_loop(void *ignore) if ( LP_sockcheck(ptr->sock) > 0 ) { if ( (sentbytes= nn_send(ptr->sock,ptr->msg,ptr->msglen,0)) != ptr->msglen ) - { printf("%d LP_send sent %d instead of %d\n",n,sentbytes,ptr->msglen); - flag = 1; - } else printf("%d %p qsent %u msglen.%d\n",n,ptr,ptr->crc32,ptr->msglen); + else printf("%d %p qsent %u msglen.%d\n",n,ptr,ptr->crc32,ptr->msglen); + flag = 1; ptr->sock = -1; /*if ( ptr->peerind > 0 ) ptr->starttime = (uint32_t)time(NULL);