diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 526b3d9db..da0bd67fd 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -1179,7 +1179,13 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu usleep(1000); else if ( IAMLP == 0 ) usleep(1000); - printf("mainloop\n"); + if ( (rand() % 10000) == 0 ) + { + int32_t sock = LP_bindsock; + printf("bindsock reset test\n"); + LP_bindsock = -1; + closesocket(sock); + } } #endif } diff --git a/iguana/exchanges/LP_utxos.c b/iguana/exchanges/LP_utxos.c index 762315b04..a162aab5a 100644 --- a/iguana/exchanges/LP_utxos.c +++ b/iguana/exchanges/LP_utxos.c @@ -826,6 +826,7 @@ int32_t LP_passphrase_init(char *passphrase,char *gui) G.LP_sessionid = (uint32_t)time(NULL); safecopy(G.gui,gui,sizeof(G.gui)); G.USERPASS_COUNTER = counter; + G.initializing = 0; return(0); }