summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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) {