From 527e7878a87ced64c17a199a9b890fa41a3b09a7 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 27 Feb 2017 12:24:17 -0800 Subject: [PATCH] Fix unresolved promise in removeSession Previously if there was no session to remove, the promise returned from removeSession would never resolve, potentially blocking sending for that recipient until restart. // FREEBIE --- js/signal_protocol_store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/signal_protocol_store.js b/js/signal_protocol_store.js index 9359d3fa..9e6351c9 100644 --- a/js/signal_protocol_store.js +++ b/js/signal_protocol_store.js @@ -251,7 +251,7 @@ var session = new Session({id: encodedNumber}); session.fetch().then(function() { session.destroy().then(resolve); - }); + }).fail(resolve); }); }, removeAllSessions: function(number) {