summaryrefslogtreecommitdiff
path: root/src/zmq_engine.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-12-13 09:11:08 +0100
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-12-13 09:11:08 +0100
commit73b765e4b497f6a505cbf88c524085fa0e58e59c (patch)
treee5168937f98cbb2d85ad3cc93e842ef29d14b276 /src/zmq_engine.cpp
parentd5670f34baa0751a5b4567a28caea4e4fa208727 (diff)
PGM transport fixed
Diffstat (limited to 'src/zmq_engine.cpp')
-rw-r--r--src/zmq_engine.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zmq_engine.cpp b/src/zmq_engine.cpp
index d474f4e..c04f29b 100644
--- a/src/zmq_engine.cpp
+++ b/src/zmq_engine.cpp
@@ -106,7 +106,9 @@ void zmq::zmq_engine_t::out_event ()
{
// If write buffer is empty, try to read new data from the encoder.
if (!outsize) {
- encoder.get_buffer (&outpos, &outsize);
+
+ outpos = NULL;
+ encoder.get_data (&outpos, &outsize);
// If there is no data to send, stop polling for output.
if (outsize == 0) {