refine manyuser thread start & stop
This commit is contained in:
parent
876bbbe5d8
commit
90ae1fdc40
3 changed files with 46 additions and 15 deletions
|
@ -72,6 +72,9 @@ class ServerPool(object):
|
|||
ServerPool.instance = ServerPool()
|
||||
return ServerPool.instance
|
||||
|
||||
def stop(self):
|
||||
self.loop.stop()
|
||||
|
||||
@staticmethod
|
||||
def _loop(loop, dns_resolver, mgr):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue