Skip to content

Commit 082d3e9

Browse files
authored
fix(rtorrent): make adding torrent work with upstream json rpc enabled without extra config (#930)
1 parent 2c5da60 commit 082d3e9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

server/services/rTorrent/clientGatewayService.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,7 @@ class RTorrentClientGatewayService extends ClientGatewayService {
119119
})),
120120
),
121121
])
122-
.then(this.processClientRequestSuccess, this.processRTorrentRequestError)
123-
.then((response: Array<Array<string | number>>) => {
124-
const hashes = response.flat(2).filter((value) => typeof value === 'string') as string[];
125-
result.push(...hashes);
126-
});
122+
.then(this.processClientRequestSuccess, this.processRTorrentRequestError);
127123
} else {
128124
await Promise.all(
129125
processedFiles.map(async (file) => {

0 commit comments

Comments
 (0)