From 616a0c74bd9e95cbd73230a0756f251f57f7bb22 Mon Sep 17 00:00:00 2001 From: breakwa11 Date: Thu, 11 Jun 2015 00:41:51 +0800 Subject: [PATCH] rename destroy to close --- server_pool.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server_pool.py b/server_pool.py index 857afdf..0f0052e 100644 --- a/server_pool.py +++ b/server_pool.py @@ -158,13 +158,13 @@ class ServerPool(object): else: logging.info("stopped server at %s:%d" % (self.config['server'], port)) try: - self.tcp_servers_pool[port].destroy() + self.tcp_servers_pool[port].close() del self.tcp_servers_pool[port] except Exception, e: logging.warn(e) if self.udp_on: try: - self.udp_servers_pool[port].destroy() + self.udp_servers_pool[port].close() del self.udp_servers_pool[port] except Exception, e: logging.warn(e) @@ -175,13 +175,13 @@ class ServerPool(object): else: logging.info("stopped server at %s:%d" % (self.config['server_ipv6'], port)) try: - self.tcp_ipv6_servers_pool[port].destroy() + self.tcp_ipv6_servers_pool[port].close() del self.tcp_ipv6_servers_pool[port] except Exception, e: logging.warn(e) if self.udp_on: try: - self.udp_ipv6_servers_pool[port].destroy() + self.udp_ipv6_servers_pool[port].close() del self.udp_ipv6_servers_pool[port] except Exception, e: logging.warn(e)