From 87f65de0c56735397fd6f68e77d6fe5cc915675d Mon Sep 17 00:00:00 2001 From: AsamK Date: Mon, 11 May 2020 18:31:22 +0200 Subject: [PATCH] Save account state after ending session even if sending the message has failed --- src/main/java/org/asamk/signal/manager/Manager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/asamk/signal/manager/Manager.java b/src/main/java/org/asamk/signal/manager/Manager.java index aa5c2dba..1340cd0a 100644 --- a/src/main/java/org/asamk/signal/manager/Manager.java +++ b/src/main/java/org/asamk/signal/manager/Manager.java @@ -699,6 +699,7 @@ public class Manager implements Signal { for (SignalServiceAddress address : signalServiceAddresses) { handleEndSession(address); } + account.save(); throw e; } }