Skip to content

Commit

Permalink
Merge pull request chris-belcher#200 from jmacxx/fix_connection_issue…
Browse files Browse the repository at this point in the history
…_IOError

Handle uncaught exception when electrum connects
  • Loading branch information
chris-belcher authored Jun 9, 2020
2 parents 9342253 + bfa0806 commit f03a83d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electrumpersonalserver/server/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down

0 comments on commit f03a83d

Please sign in to comment.