From af543a58f28363dc6f358c7431c5d27d07514961 Mon Sep 17 00:00:00 2001 From: somdoron Date: Wed, 18 Nov 2015 15:02:19 +0200 Subject: [PATCH] Fix a bug when stream_engine try to set alreadt set metadata --- src/stream_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp index 87186cc0..faca8929 100644 --- a/src/stream_engine.cpp +++ b/src/stream_engine.cpp @@ -842,7 +842,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_); }