refine manyuser thread start & stop

This commit is contained in:
BreakWa11 2015-12-28 15:05:47 +08:00
parent 876bbbe5d8
commit 90ae1fdc40
3 changed files with 46 additions and 15 deletions

View file

@ -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: