mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-16 16:13:58 +00:00
Corrects ypipe initialization when conflate is NOT enabled.
Fixes LIBZMQ-584
This commit is contained in:
parent
526847b73b
commit
589fa57afa
@ -481,10 +481,10 @@ void zmq::pipe_t::hiccup ()
|
|||||||
// Create new inpipe.
|
// Create new inpipe.
|
||||||
if (conflate)
|
if (conflate)
|
||||||
inpipe = new (std::nothrow)
|
inpipe = new (std::nothrow)
|
||||||
ypipe_t <msg_t, message_pipe_granularity> ();
|
ypipe_conflate_t <msg_t, message_pipe_granularity> ();
|
||||||
else
|
else
|
||||||
inpipe = new (std::nothrow)
|
inpipe = new (std::nothrow)
|
||||||
ypipe_conflate_t <msg_t> ();
|
ypipe_t <msg_t> ();
|
||||||
|
|
||||||
alloc_assert (inpipe);
|
alloc_assert (inpipe);
|
||||||
in_active = true;
|
in_active = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user