Whenever adding something to a queue, include a timeout
No more wedged queues! FREEBIE
This commit is contained in:
parent
cc2c3edaa6
commit
9db0a58260
10 changed files with 243 additions and 27 deletions
|
@ -146,7 +146,8 @@
|
|||
}.bind(this));
|
||||
},
|
||||
queueTask: function(task) {
|
||||
return this.pending = this.pending.then(task, task);
|
||||
var taskWithTimeout = textsecure.createTaskWithTimeout(task);
|
||||
return this.pending = this.pending.then(taskWithTimeout, taskWithTimeout);
|
||||
},
|
||||
cleanSignedPreKeys: function() {
|
||||
var nextSignedKeyId = textsecure.storage.get('signedKeyId');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue