From a109f571e37996612186f9195161dec98987738b Mon Sep 17 00:00:00 2001 From: clowwindy Date: Thu, 12 Jun 2014 17:11:05 +0800 Subject: [PATCH] fix worker master --- CHANGES | 3 +++ shadowsocks/asyncdns.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index f569c16..de63c86 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2.0.4 2014-06-12 +- Fix worker master + 2.0.3 2014-06-11 - Fix table encryption with UDP diff --git a/shadowsocks/asyncdns.py b/shadowsocks/asyncdns.py index cbdd6a5..f7934cb 100644 --- a/shadowsocks/asyncdns.py +++ b/shadowsocks/asyncdns.py @@ -423,7 +423,9 @@ class DNSResolver(object): self._send_req(hostname, QTYPE_A) def close(self): - self._sock.close() + if self._sock: + self._sock.close() + self._sock = None def test():