diff options
author | Andrew Stitcher <astitcher@apache.org> | 2009-09-22 15:59:53 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2009-09-22 15:59:53 +0000 |
commit | 3d3fb015b49b088a6e1f641437cd6b7acb0ed6ec (patch) | |
tree | 92337ec015253d12f5ad045922592d791ae3f1a3 /cpp/src/qpid/sys/posix/AsynchIO.cpp | |
parent | 4551735283dd89c17529782305679a9ac744d31f (diff) | |
download | qpid-python-3d3fb015b49b088a6e1f641437cd6b7acb0ed6ec.tar.gz |
Make the AsynchIO API more consistent
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@817711 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/posix/AsynchIO.cpp')
-rw-r--r-- | cpp/src/qpid/sys/posix/AsynchIO.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/posix/AsynchIO.cpp b/cpp/src/qpid/sys/posix/AsynchIO.cpp index 8545ebd9cb..c6d73b059e 100644 --- a/cpp/src/qpid/sys/posix/AsynchIO.cpp +++ b/cpp/src/qpid/sys/posix/AsynchIO.cpp @@ -467,7 +467,8 @@ void AsynchIO::readable(DispatchHandle& h) { threadReadTotal += rc; readTotal += rc; - if (!readCallback(*this, buff)) { + readCallback(*this, buff); + if (readingStopped) { // We have been flow controlled. break; } |