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:
lilia 2017-02-27 12:24:17 -08:00
parent e4b9c51f88
commit 527e7878a8

View file

@ -251,7 +251,7 @@
var session = new Session({id: encodedNumber});
session.fetch().then(function() {
session.destroy().then(resolve);
});
}).fail(resolve);
});
},
removeAllSessions: function(number) {