mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Fix a bug when stream_engine try to set alreadt set metadata
This commit is contained in:
parent
afc7c5c745
commit
210572201d
@ -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_) {
|
int zmq::stream_engine_t::push_raw_msg_to_session (msg_t *msg_) {
|
||||||
if (metadata)
|
if (metadata && metadata != msg_->metadata())
|
||||||
msg_->set_metadata(metadata);
|
msg_->set_metadata(metadata);
|
||||||
return push_msg_to_session(msg_);
|
return push_msg_to_session(msg_);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user