tlnbase: fix peer clean-up - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit a8b9727817a9637cc9ce003da93d6f2734c65c54
DIR parent 87cc312d1eb89f03d12d6280554eb6b5e4dcb5e3
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 17 Oct 2018 12:10:43 +0200
lnbase: fix peer clean-up
Diffstat:
M electrum/lnbase.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/electrum/lnbase.py b/electrum/lnbase.py
t@@ -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():