Logout
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { terminateFaceWorker } from "@/new/photos/services/face";
|
||||
import { clearFaceData } from "@/new/photos/services/face/db";
|
||||
import { clearFeatureFlagSessionState } from "@/new/photos/services/feature-flags";
|
||||
import log from "@/next/log";
|
||||
@@ -41,6 +42,12 @@ export const photosLogout = async () => {
|
||||
ignoreError("CLIP", e);
|
||||
}
|
||||
|
||||
try {
|
||||
terminateFaceWorker();
|
||||
} catch (e) {
|
||||
ignoreError("face", e);
|
||||
}
|
||||
|
||||
const electron = globalThis.electron;
|
||||
if (electron) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user