mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Stop signed key rotation as export process starts
This commit is contained in:
@@ -101,6 +101,8 @@
|
||||
};
|
||||
|
||||
Whisper.events.on('start-shutdown', function() {
|
||||
Whisper.RotateSignedPreKeyListener.stop();
|
||||
|
||||
if (messageReceiver) {
|
||||
messageReceiver.close().then(function() {
|
||||
messageReceiver = null;
|
||||
|
||||
@@ -59,6 +59,15 @@
|
||||
setTimeoutForNextRun();
|
||||
}
|
||||
});
|
||||
},
|
||||
stop: function() {
|
||||
console.log('Stopping signed prekey rotation');
|
||||
clearTimeout(timeout);
|
||||
timeout = null;
|
||||
},
|
||||
start: function() {
|
||||
console.log('Starting signed prekey rotation');
|
||||
setTimeoutForNextRun();
|
||||
}
|
||||
};
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user