This commit is contained in:
Manav Rathi
2024-05-15 13:31:06 +05:30
parent eba910e202
commit 8726ca8a59
2 changed files with 0 additions and 8 deletions

View File

@@ -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);
}
};

View File

@@ -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,