diff --git a/Lib/asyncore.py b/Lib/asyncore.py index e06b3b461c9..1ef4896a79e 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -102,7 +102,7 @@ def readwrite(obj, flags): if flags & (select.POLLERR | select.POLLNVAL): obj.handle_expt_event() if flags & select.POLLHUP: - obj.handle_close_event() + obj.handle_close() except (ExitNow, KeyboardInterrupt, SystemExit): raise except: