commit f03a83db87a99a425ad36a95109f3dd0933840fd
parent 93422538bc565d02df4b81a7fd313781df94cfea
Author: chris-belcher <belcher@riseup.net>
Date: Tue, 9 Jun 2020 14:10:05 +0100
Merge pull request #200 from jmacxx/fix_connection_issue_IOError
Handle uncaught exception when electrum connects
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrumpersonalserver/server/common.py b/electrumpersonalserver/server/common.py
@@ -123,7 +123,7 @@ def run_electrum_server(rpc, txmonitor, config):
except socket.timeout:
is_node_reachable = on_heartbeat_listening(txmonitor)
accepting_clients = is_node_reachable
- except (ConnectionRefusedError, ssl.SSLError):
+ except (ConnectionRefusedError, ssl.SSLError, IOError):
sock.close()
sock = None
logger.debug('Electrum connected from ' + str(addr[0]))