Allow shutting down while starting I2P listener
This commit is contained in:
parent
761c95d561
commit
e8dc62f08b
|
@ -17,6 +17,8 @@ class I2PController(I2PThread):
|
|||
self.nick = b'MiNode_' + base64.b16encode(os.urandom(4)).lower()
|
||||
|
||||
while True:
|
||||
if state.shutting_down:
|
||||
return
|
||||
try:
|
||||
self.s = socket.create_connection((self.host, self.port))
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue
Block a user