Skip to content

Commit

Permalink
apply timeout checking connection
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Jan 27, 2024
1 parent 96daaa0 commit a7c7cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/ts/common/MoneroRpcConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default class MoneroRpcConnection {
if (this.fakeDisconnected) throw new Error("Connection is fake disconnected");
let heights = [];
for (let i = 0; i < 100; i++) heights.push(i);
await this.sendBinaryRequest("get_blocks_by_height.bin", {heights: heights}); // assume daemon connection
await this.sendBinaryRequest("get_blocks_by_height.bin", {heights: heights}, timeoutMs); // assume daemon connection
this.isOnline = true;
this.isAuthenticated = true;
} catch (err) {
Expand Down

0 comments on commit a7c7cc6

Please sign in to comment.