do not send deposits confirmed message if shut down started

This commit is contained in:
woodser 2023-04-22 18:22:31 -04:00
parent a0bc57c893
commit 52d74c1654

View file

@ -838,6 +838,7 @@ public abstract class TradeProtocol implements DecryptedDirectMessageListener, D
}
public void maybeSendDepositsConfirmedMessages() {
if (trade.isShutDownStarted()) return;
synchronized (trade) {
if (!trade.isInitialized()) return; // skip if shutting down
if (trade.getProcessModel().isDepositsConfirmedMessagesDelivered()) return; // skip if already delivered