Fix close peer socket on connection failure (#1086)

This commit is contained in:
Jonathan Zernik 2021-08-28 01:12:42 -07:00 committed by GitHub
parent 2db3b47cb1
commit 2aec5a58f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,6 +56,7 @@ class Connection(object):
finally:
logger.info("Removing peer.")
connection_manager.remove_peer(self.peer)
self.peer.stop()
def handle_connection(self):
self.initial_sync()