summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Colomiets <paul@colomiets.name>2012-04-29 21:38:30 +0300
committerMartin Sustrik <sustrik@250bpm.com>2012-04-30 06:30:01 +0200
commit2be5bb0cd8c33505e404467102c41151dabcbcd7 (patch)
tree1e8d444a2fcdbf98b41d432059c2e5d45d5fc98f /src
parent58fd3f8c1d761e69426618802d16f20e13ff886d (diff)
Fix premature poll reset_pollout
Signed-off-by: Paul Colomiets <paul@colomiets.name>
Diffstat (limited to 'src')
-rw-r--r--src/stream_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp
index a39b410..85e3073 100644
--- a/src/stream_engine.cpp
+++ b/src/stream_engine.cpp
@@ -304,7 +304,7 @@ void xs::stream_engine_t::out_event (fd_t fd_)
// If the encoder reports that there are no more data to get from it
// we can stop polling for POLLOUT immediately.
- if (!more_data)
+ if (!more_data && !outsize)
reset_pollout (handle);
}