From 2762490e6d8f626590d5b29ca60e792c14e589b4 Mon Sep 17 00:00:00 2001 From: Josh Babb Date: Wed, 24 May 2023 13:15:10 -0500 Subject: [PATCH] add todo --- lib/electrumx_rpc/rpc.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/electrumx_rpc/rpc.dart b/lib/electrumx_rpc/rpc.dart index b20f2f802..1aba123e0 100644 --- a/lib/electrumx_rpc/rpc.dart +++ b/lib/electrumx_rpc/rpc.dart @@ -52,6 +52,10 @@ class JsonRPC { socket?.destroy(); } + if (socket != null) { + // TODO check if the socket is valid, alive, connected, etc + } + if (useSSL) { socket ??= await SecureSocket.connect(host, port, timeout: connectionTimeout,