Browse Source

remove mgr

dev
BreakWa11 9 years ago
parent
commit
b8cf491212
  1. 3
      server_pool.py

3
server_pool.py

@ -55,7 +55,7 @@ class ServerPool(object):
if not self.config.get('dns_ipv6', False): if not self.config.get('dns_ipv6', False):
asyncdns.IPV6_CONNECTION_SUPPORT = False asyncdns.IPV6_CONNECTION_SUPPORT = False
self.mgr = asyncmgr.ServerMgr() self.mgr = None #asyncmgr.ServerMgr()
self.tcp_servers_pool = {} self.tcp_servers_pool = {}
self.tcp_ipv6_servers_pool = {} self.tcp_ipv6_servers_pool = {}
@ -78,6 +78,7 @@ class ServerPool(object):
@staticmethod @staticmethod
def _loop(loop, dns_resolver, mgr): def _loop(loop, dns_resolver, mgr):
try: try:
if mgr is not None:
mgr.add_to_loop(loop) mgr.add_to_loop(loop)
dns_resolver.add_to_loop(loop) dns_resolver.add_to_loop(loop)
loop.run() loop.run()

Loading…
Cancel
Save