StartShutdown(); instead of exit()

This commit is contained in:
jl777
2019-04-14 02:15:56 -11:00
parent a0136724b0
commit aec1884070
5 changed files with 21 additions and 16 deletions

View File

@@ -1662,7 +1662,7 @@ void *dealer0_loop(void *_arg)
if ( (cp= Diceinit(fundingPubKey,dealer0_fundingtxid,&C,planstr,txfee,mypk,dicepk,refsbits,minbet,maxbet,maxodds,timeoutblocks)) == 0 )
{
fprintf(stderr,"error initializing dealer0_loop\n");
exit(-1);
StartShutdown();
}
fprintf(stderr,"dealer0 node running\n");
height = lastht = 0;