Skip to content

Commit

Permalink
Fix unresolved promise in removeSession
Browse files Browse the repository at this point in the history
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
  • Loading branch information
liliakai committed Feb 28, 2017
1 parent e4b9c51 commit 527e787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/signal_protocol_store.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
var session = new Session({id: encodedNumber});
session.fetch().then(function() {
session.destroy().then(resolve);
});
}).fail(resolve);
});
},
removeAllSessions: function(number) {
Expand Down

0 comments on commit 527e787

Please sign in to comment.