summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-12-08 16:13:51 +0100
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-12-08 16:13:51 +0100
commit902d4f2282f4ed59f942be6fa1013b20dd964536 (patch)
tree982cfc2a68a66183ca35a884b09d1017eec1eac3 /src
parent9be877c68503c35f9f72c8b92bd11454e4fcad97 (diff)
minor fix of zero-copy on tx side
Diffstat (limited to 'src')
-rw-r--r--src/encoder.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/encoder.hpp b/src/encoder.hpp
index 62abb03..884852c 100644
--- a/src/encoder.hpp
+++ b/src/encoder.hpp
@@ -61,10 +61,8 @@ namespace zmq
*data_ = write_pos;
write_pos += *size_;
to_write -= *size_;
-
- // TODO: manage beginning & offset here.
-
- return;
+ pos = *size_;
+ break;
}
if (to_write) {