Unref open connections in the listener loops to let gc collect when closed
All checks were successful
Testing / default (push) Successful in 10m11s
All checks were successful
Testing / default (push) Successful in 10m11s
This commit is contained in:
parent
dcaee3febf
commit
9bb3038547
|
@ -49,6 +49,7 @@ class I2PListener(I2PThread):
|
|||
destination, 'i2p', self.s, 'i2p', True, destination)
|
||||
c.start()
|
||||
self.state.connections.add(c)
|
||||
c = None
|
||||
self.new_socket()
|
||||
except socket.timeout:
|
||||
pass
|
||||
|
|
|
@ -39,3 +39,4 @@ class Listener(threading.Thread):
|
|||
c = Connection(*addr[:2], conn, server=True)
|
||||
c.start()
|
||||
shared.connections.add(c)
|
||||
c = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user