feat: get process list from rpc

This commit is contained in:
Zamitto 2024-07-03 11:23:50 -03:00
parent 0c1a75eedd
commit 75c8f69e81
10 changed files with 57 additions and 49 deletions

View file

@ -1,6 +1,6 @@
import { registerEvent } from "../register-event";
import * as Sentry from "@sentry/electron/main";
import { HydraApi, TorrentDownloader, gamesPlaytime } from "@main/services";
import { HydraApi, RPCManager, 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 */
TorrentDownloader.kill();
RPCManager.kill();
await Promise.all([
databaseOperations,