jl777 7 years ago
parent
commit
2d88a063d9
  1. 1
      iguana/exchanges/LP_swap.c

1
iguana/exchanges/LP_swap.c

@ -739,6 +739,7 @@ int32_t LP_swapwait(struct basilisk_swap *swap,uint32_t requestid,uint32_t quote
if ( jstr(retjson,"status") != 0 && strcmp(jstr(retjson,"status"),"finished") == 0 ) if ( jstr(retjson,"status") != 0 && strcmp(jstr(retjson,"status"),"finished") == 0 )
{ {
swap->I.finished = (uint32_t)time(NULL); swap->I.finished = (uint32_t)time(NULL);
free(retstr);
break; break;
} }
else if ( time(NULL) > swap->I.expiration ) else if ( time(NULL) > swap->I.expiration )

Loading…
Cancel
Save