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
This commit is contained in:
parent
e4b9c51f88
commit
527e7878a8
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@
|
|||
var session = new Session({id: encodedNumber});
|
||||
session.fetch().then(function() {
|
||||
session.destroy().then(resolve);
|
||||
});
|
||||
}).fail(resolve);
|
||||
});
|
||||
},
|
||||
removeAllSessions: function(number) {
|
||||
|
|
Loading…
Reference in a new issue