From 5bd9efb7231b33e1a4cbd285926ba3defe156512 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 20 Jan 2019 19:35:49 +0000 Subject: [PATCH] issue #61: add missing close() implementation (reported by LGTM) --- mitogen/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mitogen/core.py b/mitogen/core.py index 825c580c..71589e45 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -920,6 +920,10 @@ class Channel(Sender, Receiver): Sender.__init__(self, context, dst_handle) Receiver.__init__(self, router, handle) + def close(self): + Receiver.close(self) + Sender.close(self) + def __repr__(self): return 'Channel(%s, %s)' % ( Sender.__repr__(self),