fix: Dont run background task after logged out
This commit is contained in:
parent
2efe404e13
commit
88403d19ba
|
|
@ -362,7 +362,7 @@ class Encryption {
|
|||
// this method is responsible for all background tasks, such as uploading online key backups
|
||||
bool _backgroundTasksRunning = true;
|
||||
void _backgroundTasks() {
|
||||
if (!_backgroundTasksRunning) {
|
||||
if (!_backgroundTasksRunning || !client.isLogged()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue