diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-12-08 16:13:51 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-12-08 16:13:51 +0100 |
commit | 902d4f2282f4ed59f942be6fa1013b20dd964536 (patch) | |
tree | 982cfc2a68a66183ca35a884b09d1017eec1eac3 | |
parent | 9be877c68503c35f9f72c8b92bd11454e4fcad97 (diff) |
minor fix of zero-copy on tx side
-rw-r--r-- | src/encoder.hpp | 6 |
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) { |