From 3206536d4752e266222702d095c09539eb67c401 Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 27 Jun 2017 16:27:24 -1000 Subject: [PATCH] Fix deadlock in saveIdentity Archive only sibling sessions so as not to block on the same device lock as the protocol lib. // FREEBIE --- js/signal_protocol_store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/signal_protocol_store.js b/js/signal_protocol_store.js index 92dc6addf..d49be1c53 100644 --- a/js/signal_protocol_store.js +++ b/js/signal_protocol_store.js @@ -468,8 +468,8 @@ verified : verifiedStatus, nonblockingApproval : nonblockingApproval, }).then(function() { - this.trigger('keychange', identifier); - this.archiveAllSessions(identifier).then(function() { + this.trigger('keychange', number); + this.archiveSiblingSessions(identifier).then(function() { resolve(true); }, reject); }.bind(this));