Skip to content

Commit

Permalink
update 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jc3213 authored Nov 1, 2024
1 parent 992cd2d commit efee6f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion archived/aria2_0.8.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Aria2 {
return this.jsonrpc.secret;
}
set retries (number) {
this.jsonrpc.retries = isNaN(number) ? Infinity : number;
this.jsonrpc.retries = isNaN(number) || number === -1 ? Infinity : number;
}
get retries () {
return isNaN(this.jsonrpc.retries) ? Infinity : this.jsonrpc.retries;
Expand Down
2 changes: 1 addition & 1 deletion aria2.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Aria2 {
return this.jsonrpc.secret;
}
set retries (number) {
this.jsonrpc.retries = isNaN(number) ? Infinity : number;
this.jsonrpc.retries = isNaN(number) || number === -1 ? Infinity : number;
}
get retries () {
return isNaN(this.jsonrpc.retries) ? Infinity : this.jsonrpc.retries;
Expand Down

0 comments on commit efee6f6

Please sign in to comment.