Skip to content

Commit

Permalink
try closing socket
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Oct 27, 2024
1 parent bd42f16 commit 5f05e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/store-sync/src/wiresaw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export function watchLogs({ url, address, fromBlock }: WatchLogsInput): WatchLog
await client.requestAsync({ body: { method: "net_version" }, timeout: pingTimeout });
} catch (error) {
debug("ping failed, closing...", error);
client.close();
// client.close();
// TODO: try to close socket to see if it reconnects?
// client.socket.close()
client.socket.close();
throw error;
}
}
Expand Down

0 comments on commit 5f05e72

Please sign in to comment.