Browse Source

Adjust IPC communication

staging
David Ludwig 4 years ago
parent
commit
8dce09419d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      services/torrent-webui/src/server/services/TorrentClientIpc.ts

+ 2
- 1
services/torrent-webui/src/server/services/TorrentClientIpc.ts View File

@ -89,7 +89,7 @@ export default class TorrentClientIpc
/**
* Perform a general request to the torrent client
*/
protected async request(method: string, message?: any) {
protected async request(method: string, ...message: any[]) {
return new Promise<IResponse>((resolve, reject) => {
if (!this.isConnected) {
throw new Error("Not connected to torrent client");
@ -140,6 +140,7 @@ export default class TorrentClientIpc
console.error(response.error);
throw new Error("Failed to obtain torrent list");
}
console.log("Response is:", response);
return <ITorrent[]>response.response;
}


Loading…
Cancel
Save