mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 13:47:13 +01:00
zmq::writer_t: Add missing test for swap
This commit is contained in:
committed by
Martin Sustrik
parent
92f9136ca6
commit
be159b6316
@@ -309,7 +309,6 @@ void zmq::writer_t::process_activate_writer (uint64_t msgs_read_)
|
||||
}
|
||||
if (!pipe->flush ())
|
||||
send_activate_reader (reader);
|
||||
}
|
||||
|
||||
// There are no more messages in the swap. We can switch into
|
||||
// standard in-memory mode.
|
||||
@@ -329,6 +328,7 @@ void zmq::writer_t::process_activate_writer (uint64_t msgs_read_)
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If the writer was non-active before, let's make it active
|
||||
// (available for writing messages to).
|
||||
|
||||
Reference in New Issue
Block a user