diff --git a/iguana/exchanges/LP_swap.c b/iguana/exchanges/LP_swap.c index b84b08c21..24c189542 100644 --- a/iguana/exchanges/LP_swap.c +++ b/iguana/exchanges/LP_swap.c @@ -863,13 +863,16 @@ void LP_bobloop(void *_swap) sleep(10); } LP_swap_critical = (uint32_t)time(NULL); - if ( LP_swapdata_rawtxsend(swap->N.pair,swap,0x8000,data,maxlen,&swap->bobpayment,0x4000,0) == 0 ) { - printf("error sending bobpayment\n"); - } else if (swap->I.bobtomic[0] != 0) { + + if (swap->I.bobtomic[0] != 0) { char *paymentTx = LP_etomicbob_sends_payment(swap); strcpy(swap->bobpayment.I.ethTxid, paymentTx); free(paymentTx); } + + if ( LP_swapdata_rawtxsend(swap->N.pair,swap,0x8000,data,maxlen,&swap->bobpayment,0x4000,0) == 0 ) { + printf("error sending bobpayment\n"); + } //if ( LP_waitfor(swap->N.pair,swap,10,LP_verify_alicespend) < 0 ) // printf("error waiting for alicespend\n"); //swap->sentflag = 1;