From c7175a7a71adcdf235f500f6ce208135f2d306a7 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Sun, 11 Oct 2009 16:58:34 +0000 Subject: only invoke readable and writeable if the selectables are still reading and writing git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@824107 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/selector.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/qpid/selector.py b/python/qpid/selector.py index 710f8f0689..46052e1108 100644 --- a/python/qpid/selector.py +++ b/python/qpid/selector.py @@ -136,10 +136,12 @@ class Selector: rd, wr, ex = select(self.reading, self.writing, (), timeout) for sel in wr: - sel.writeable() + if sel.writing(): + sel.writeable() for sel in rd: - sel.readable() + if sel.reading(): + sel.readable() now = time.time() for sel in self.selectables.copy(): -- cgit v1.2.1