diff options
Diffstat (limited to 'python/gevent/baseserver.py')
-rw-r--r-- | python/gevent/baseserver.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/gevent/baseserver.py b/python/gevent/baseserver.py index 5b8bce5..d20d936 100644 --- a/python/gevent/baseserver.py +++ b/python/gevent/baseserver.py @@ -163,9 +163,11 @@ class BaseServer(object): def stop_accepting(self): if self._watcher is not None: self._watcher.stop() + self._watcher.close() self._watcher = None if self._timer is not None: self._timer.stop() + self._timer.close() self._timer = None def do_handle(self, *args): @@ -398,5 +400,5 @@ def _parse_address(address): def parse_address(address): try: return _parse_address(address) - except ValueError as ex: + except ValueError as ex: # pylint:disable=try-except-raise raise ValueError('Failed to parse address %r: %s' % (address, ex)) |