mlwm
This commit is contained in:
parent
1648229f4c
commit
eba910e202
|
@ -31,7 +31,7 @@ export const photosLogout = async () => {
|
|||
const electron = globalThis.electron;
|
||||
if (electron) {
|
||||
try {
|
||||
await mlWorkManager.setMlSearchEnabled(false);
|
||||
await mlWorkManager.logout();
|
||||
} catch (e) {
|
||||
log.error("Ignoring error during logout (ML)", e);
|
||||
}
|
||||
|
|
|
@ -175,16 +175,12 @@ class MLWorkManager {
|
|||
}
|
||||
}
|
||||
|
||||
private async logoutHandler() {
|
||||
log.info("logoutHandler");
|
||||
try {
|
||||
this.stopSyncJob();
|
||||
this.mlSyncJob = undefined;
|
||||
await this.terminateLiveSyncWorker();
|
||||
await mlIDbStorage.clearMLDB();
|
||||
} catch (e) {
|
||||
log.error("Failed in ML logout Handler", e);
|
||||
}
|
||||
async logout() {
|
||||
this.setMlSearchEnabled(false);
|
||||
this.stopSyncJob();
|
||||
this.mlSyncJob = undefined;
|
||||
await this.terminateLiveSyncWorker();
|
||||
await mlIDbStorage.clearMLDB();
|
||||
}
|
||||
|
||||
private async fileUploadedHandler(arg: {
|
||||
|
|
Loading…
Reference in a new issue