Terminate connection waiter thread

This commit is contained in:
Oleksii Shevchuk 2016-10-16 19:41:22 +03:00
parent 64a9447ece
commit 6c8d2577c8
2 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,7 @@ class PupyTCPServer(ThreadPoolServer):
pass
finally:
event.set()
t.terminate()
return c
class PupyUDPServer(object):

View File

@ -234,6 +234,8 @@ def rpyc_loop(launcher):
conn=rpyc.utils.factory.connect_stream(stream, ReverseSlaveService, {})
finally:
event.set()
t.terminate()
attempt=0
conn.serve_all()
except KeyboardInterrupt: