Skip to content

Commit

Permalink
Args
Browse files Browse the repository at this point in the history
  • Loading branch information
msimmer committed Dec 6, 2019
1 parent 7814123 commit b762fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class API {
}

reannounceTorrents(rpcPorts, callback) {
const args = rpcPorts.reduce((acc, port) => acc.concat(["-p", port]), args);
const args = rpcPorts.reduce((acc, port) => acc.concat(["-p", port]), []);
this.exec(process.env.SCRIPT_REANNOUNCE_TORRENTS, args, callback);
}
}
Expand Down

0 comments on commit b762fdd

Please sign in to comment.