From 39797f0e8f7fc405f284ead61fba892daa56c912 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 20 Jun 2017 13:40:37 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 49ef0ac3e..4e3f5da47 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -312,8 +312,9 @@ int32_t LP_mainloop_iter(char *myipaddr,struct LP_peerinfo *mypeer,int32_t pubso { char keepalive[128]; sprintf(keepalive,"{\"method\":\"keepalive\"}"); - printf("send keepalive to %s\n",pushaddr); - LP_send(pullsock,keepalive,0); + printf("send keepalive to %s pullsock.%d\n",pushaddr,pullsock); + if ( LP_send(pullsock,keepalive,0) < 0 ) + LP_deadman_switch = 0; } counter++; return(nonz);