|
|
@ -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; |
|
|
|
} |
|
|
|
|
|
|
|