From 66856863ff6155856dd14ba0d87762150e183159 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 4 Nov 2017 01:10:34 +0200 Subject: [PATCH] Test --- iguana/exchanges/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/stats.c b/iguana/exchanges/stats.c index c58a6f0ca..09f54d8c7 100644 --- a/iguana/exchanges/stats.c +++ b/iguana/exchanges/stats.c @@ -771,7 +771,6 @@ void stats_rpcloop(void *args) { LP_rpc_processreq((void *)&arg64); free(arg64ptr); - closesocket(sock); //char remoteaddr[64]; //expand_ipbits(remoteaddr,ipbits); //printf("finished RPC request from (%s) %x\n",remoteaddr,ipbits); @@ -782,6 +781,7 @@ void stats_rpcloop(void *args) // yes, small leak per command } close(bindsock); + closesocket(sock); bindsock = iguana_socket(1,"0.0.0.0",port); } }