|
@ -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 ) |
|
|