diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2009-10-11 16:58:34 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2009-10-11 16:58:34 +0000 |
| commit | c7175a7a71adcdf235f500f6ce208135f2d306a7 (patch) | |
| tree | 202c81be82acd41c8d1bb6375e2e5b0ff3bada61 /python | |
| parent | 3939eecd394157e89bf583988f8de48b24a9b88a (diff) | |
| download | qpid-python-c7175a7a71adcdf235f500f6ce208135f2d306a7.tar.gz | |
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
Diffstat (limited to 'python')
| -rw-r--r-- | python/qpid/selector.py | 6 |
1 files changed, 4 insertions, 2 deletions
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(): |
