Fix lockup when bids timeout.

This commit is contained in:
tecnovert 2024-06-03 12:13:17 +02:00
parent ad7d23a8de
commit 80852fd0ea

View file

@ -3165,7 +3165,7 @@ class BasicSwap(BaseApp):
def timeoutBid(self, bid_id: bytes, session_in=None) -> None: def timeoutBid(self, bid_id: bytes, session_in=None) -> None:
self.log.info('Bid %s timed-out', bid_id.hex()) self.log.info('Bid %s timed-out', bid_id.hex())
self.deactivateBidForReason(bid_id, BidStates.SWAP_TIMEDOUT) self.deactivateBidForReason(bid_id, BidStates.SWAP_TIMEDOUT, session_in=session_in)
def setBidError(self, bid_id: bytes, bid, error_str: str, save_bid: bool = True, xmr_swap=None) -> None: def setBidError(self, bid_id: bytes, bid, error_str: str, save_bid: bool = True, xmr_swap=None) -> None:
self.log.error('Bid %s - Error: %s', bid_id.hex(), error_str) self.log.error('Bid %s - Error: %s', bid_id.hex(), error_str)