diff --git a/src/maker/maker.rs b/src/maker/maker.rs index 8419c87..c7eda88 100644 --- a/src/maker/maker.rs +++ b/src/maker/maker.rs @@ -479,11 +479,6 @@ impl MakerActor { trade_rsp: TradeResponse, rsp_tx: oneshot::Sender>, ) { - if let Some(error) = self.check_trade_completed().err() { - rsp_tx.send(Err(error)).unwrap(); // oneshot should not fail - return; - } - let offer_event_id = trade_rsp.offer_event_id.clone(); let pubkey = match self.data.offer_envelopes().get(&offer_event_id) { @@ -573,6 +568,8 @@ impl MakerActor { .delete_maker_order_note(maker_order_note_id.clone(), "Trade Cancelled") .await; + self.data.set_trade_completed(true); + // Send response back to user match result { Ok(_) => {