mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
lnbase: fix peer clean-up
This commit is contained in:
parent
bcf202c465
commit
ab61a7592e
1 changed files with 2 additions and 1 deletions
|
@ -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():
|
||||||
|
|
Loading…
Add table
Reference in a new issue