fix: Dont run background task after logged out

This commit is contained in:
Christian Pauly 2021-01-05 15:15:39 +01:00
parent 2efe404e13
commit 88403d19ba
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ class Encryption {
// this method is responsible for all background tasks, such as uploading online key backups // this method is responsible for all background tasks, such as uploading online key backups
bool _backgroundTasksRunning = true; bool _backgroundTasksRunning = true;
void _backgroundTasks() { void _backgroundTasks() {
if (!_backgroundTasksRunning) { if (!_backgroundTasksRunning || !client.isLogged()) {
return; return;
} }