Manav Rathi 1 년 전
부모
커밋
8726ca8a59
2개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 7
      web/apps/photos/src/services/logout.ts
  2. 0 1
      web/apps/photos/src/services/machineLearning/mlWorkManager.ts

+ 0 - 7
web/apps/photos/src/services/logout.ts

@@ -1,6 +1,5 @@
 import log from "@/next/log";
 import { accountLogout } from "@ente/accounts/services/logout";
-import { Events, eventBus } from "@ente/shared/events";
 import { clipService } from "services/clip-service";
 import DownloadManager from "./download";
 import exportService from "./export";
@@ -48,10 +47,4 @@ export const photosLogout = async () => {
             log.error("Ignoring error during logout (electron)", e);
         }
     }
-
-    try {
-        eventBus.emit(Events.LOGOUT);
-    } catch (e) {
-        log.error("Ignoring error in event-bus logout handlers", e);
-    }
 };

+ 0 - 1
web/apps/photos/src/services/machineLearning/mlWorkManager.ts

@@ -123,7 +123,6 @@ class MLWorkManager {
         });
         this.mlSearchEnabled = false;
 
-        eventBus.on(Events.LOGOUT, this.logoutHandler.bind(this), this);
         this.debouncedLiveSyncIdle = debounce(
             () => this.onLiveSyncIdle(),
             LIVE_SYNC_IDLE_DEBOUNCE_SEC * 1000,