Flush message counter on shutdown

This commit is contained in:
Fedor Indutny
2021-09-08 16:28:18 -07:00
committed by GitHub
parent bd47720864
commit 7a5385e00a
3 changed files with 21 additions and 4 deletions

View File

@@ -618,6 +618,9 @@ export async function startApp(): Promise<void> {
window.Events = createIPCEvents({
shutdown: async () => {
window.log.info('background/shutdown');
window.Signal.Util.flushMessageCounter();
// Stop background processing
AttachmentDownloads.stop();
if (idleDetector) {