feat: apply suggestions

This commit is contained in:
Zamitto 2024-07-03 16:10:23 -03:00
parent ae3daa4c79
commit 153291f89f
10 changed files with 32 additions and 30 deletions

View file

@ -1,6 +1,6 @@
import { registerEvent } from "../register-event";
import * as Sentry from "@sentry/electron/main";
import { HydraApi, RPCManager, gamesPlaytime } from "@main/services";
import { HydraApi, PythonInstance, gamesPlaytime } from "@main/services";
import { dataSource } from "@main/data-source";
import { DownloadQueue, Game, UserAuth } from "@main/entity";
@ -24,7 +24,7 @@ const signOut = async (_event: Electron.IpcMainInvokeEvent) => {
Sentry.setUser(null);
/* Disconnects libtorrent */
RPCManager.killTorrent();
PythonInstance.killTorrent();
await Promise.all([
databaseOperations,