lnbase: fix peer clean-up

This commit is contained in:
SomberNight 2018-10-17 12:10:43 +02:00 committed by ThomasV
parent 87cc312d1e
commit a8b9727817

View file

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