lnbase: fix peer clean-up

This commit is contained in:
SomberNight 2018-10-17 12:10:43 +02:00
parent bcf202c465
commit ab61a7592e
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -359,7 +359,8 @@ class Peer(PrintError):
def close_and_cleanup(self):
try:
self.writer.close()
if self.transport:
self.transport.writer.close()
except:
pass
for chan in self.channels.values():