Fix a bug when stream_engine try to set alreadt set metadata

This commit is contained in:
somdoron 2015-11-18 15:02:19 +02:00
parent afc7c5c745
commit 210572201d

View File

@ -869,7 +869,7 @@ int zmq::stream_engine_t::push_msg_to_session (msg_t *msg_)
}
int zmq::stream_engine_t::push_raw_msg_to_session (msg_t *msg_) {
if (metadata)
if (metadata && metadata != msg_->metadata())
msg_->set_metadata(metadata);
return push_msg_to_session(msg_);
}