Remove unused jobqueue
// FREEBIE
This commit is contained in:
parent
050ea87aaf
commit
6266050a67
2 changed files with 0 additions and 34 deletions
|
@ -35474,23 +35474,6 @@ Internal.SessionLock.queueJobForNumber = function queueJobForNumber(number, runJ
|
|||
textsecure.storage.protocol = new SignalProtocolStore();
|
||||
var protocolInstance = libsignal.protocol(textsecure.storage.protocol);
|
||||
|
||||
/*
|
||||
* jobQueue manages multiple queues indexed by device to serialize
|
||||
* session io ops on the database.
|
||||
*/
|
||||
var jobQueue = {};
|
||||
function queueJobForNumber(number, runJob) {
|
||||
var runPrevious = jobQueue[number] || Promise.resolve();
|
||||
var runCurrent = jobQueue[number] = runPrevious.then(runJob, runJob);
|
||||
runCurrent.then(function() {
|
||||
if (jobQueue[number] === runCurrent) {
|
||||
delete jobQueue[number];
|
||||
}
|
||||
});
|
||||
|
||||
return runCurrent;
|
||||
}
|
||||
|
||||
window.textsecure = window.textsecure || {};
|
||||
window.textsecure.protocol_wrapper = {
|
||||
startWorker: function() {
|
||||
|
|
|
@ -9,23 +9,6 @@
|
|||
textsecure.storage.protocol = new SignalProtocolStore();
|
||||
var protocolInstance = libsignal.protocol(textsecure.storage.protocol);
|
||||
|
||||
/*
|
||||
* jobQueue manages multiple queues indexed by device to serialize
|
||||
* session io ops on the database.
|
||||
*/
|
||||
var jobQueue = {};
|
||||
function queueJobForNumber(number, runJob) {
|
||||
var runPrevious = jobQueue[number] || Promise.resolve();
|
||||
var runCurrent = jobQueue[number] = runPrevious.then(runJob, runJob);
|
||||
runCurrent.then(function() {
|
||||
if (jobQueue[number] === runCurrent) {
|
||||
delete jobQueue[number];
|
||||
}
|
||||
});
|
||||
|
||||
return runCurrent;
|
||||
}
|
||||
|
||||
window.textsecure = window.textsecure || {};
|
||||
window.textsecure.protocol_wrapper = {
|
||||
startWorker: function() {
|
||||
|
|
Loading…
Reference in a new issue