refactor: clean up code

This commit is contained in:
Hachi-R
2024-12-22 20:20:46 -03:00
parent 859d849d36
commit db01980eb8
7 changed files with 15 additions and 37 deletions

View File

@@ -2,6 +2,7 @@ import { registerEvent } from "../register-event";
import { DownloadManager, HydraApi, gamesPlaytime } from "@main/services";
import { dataSource } from "@main/data-source";
import { DownloadQueue, Game, UserAuth, UserSubscription } from "@main/entity";
import { PythonRPC } from "@main/services/python-rpc";
const signOut = async (_event: Electron.IpcMainInvokeEvent) => {
const databaseOperations = dataSource
@@ -27,8 +28,7 @@ const signOut = async (_event: Electron.IpcMainInvokeEvent) => {
DownloadManager.cancelDownload();
/* Disconnects libtorrent */
// TODO
// TorrentDownloader.killTorrent();
PythonRPC.kill();
HydraApi.handleSignOut();