Use normal shutdown infrastructure to hang up active calls

This commit is contained in:
trevor-signal
2023-05-30 14:48:36 -04:00
committed by GitHub
parent c4ddd3977d
commit 7e1c147eac
3 changed files with 11 additions and 10 deletions

View File

@@ -723,6 +723,11 @@ export async function startApp(): Promise<void> {
flushMessageCounter();
// Hangup active calls
window.Signal.Services.calling.hangupAllCalls(
'background/shutdown: shutdown requested'
);
// Stop background processing
void AttachmentDownloads.stop();
idleDetector.stop();