Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: only log-out stop on flag

Prateek Sunal981df6371a3c
diff --git a/mobile/apps/photos/lib/core/configuration.dart b/mobile/apps/photos/lib/core/configuration.dart
index fe34ba0db6..a7aa4d38bc 100644
--- a/mobile/apps/photos/lib/core/configuration.dart
+++ b/mobile/apps/photos/lib/core/configuration.dart
@@ -192,7 +192,9 @@ class Configuration {
Future<void> logout({bool autoLogout = false}) async {
_logger.info("Logging out, autoLogout: $autoLogout");
- VideoPreviewService.instance.stop('logout');
+ if (flagService.stopStreamProcess) {
+ VideoPreviewService.instance.stop('logout');
+ }
if (!autoLogout) {
if (SyncService.instance.isSyncInProgress()) {
SyncService.instance.stopSync();