Skip to content

Commit

Permalink
Fix ignore error when server changed
Browse files Browse the repository at this point in the history
  • Loading branch information
6c65726f79 committed Feb 18, 2022
1 parent 1e1a9a9 commit 54a6ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/TransmissionRPC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ class TRPC {
}

// Don't return result if tags doesn't match or server has been changed
if((ret.data && ret.data.tag!=requestId) || (ret.url && ret.url!=this.getRequestUrl())){
if((ret.data && ret.data.tag!=requestId) || requestUrl!=this.getRequestUrl()){
throw Error();
}

Expand Down

0 comments on commit 54a6ce1

Please sign in to comment.