Skip to content

Commit 19d3d9a

Browse files
committed
fix: replace assert with early return in out_event when _io_error is set
1 parent b946c18 commit 19d3d9a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/stream_engine_base.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ bool zmq::stream_engine_base_t::in_event_internal ()
313313

314314
void zmq::stream_engine_base_t::out_event ()
315315
{
316-
zmq_assert (!_io_error);
316+
if (_io_error)
317+
return;
317318

318319
// If write buffer is empty, try to read new data from the encoder.
319320
if (!_outsize) {

0 commit comments

Comments
 (0)