Skip to content

Commit

Permalink
fix assert error on late-joining subscriber after publisher has fille…
Browse files Browse the repository at this point in the history
…d NORM buffer
  • Loading branch information
weston-nrl authored and bluca committed Jul 21, 2023
1 parent ecc63d0 commit ec013f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/norm_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,7 @@ void zmq::norm_engine_t::recv_data (NormObjectHandle object)
char syncFlag;
unsigned int numBytes = 1;
if (!NormStreamRead (stream, &syncFlag, &numBytes)) {
// broken stream (shouldn't happen after seek msg start?)
zmq_assert (false);
// broken stream (can happen on late-joining subscriber)
continue;
}
if (0 == numBytes) {
Expand Down

0 comments on commit ec013f3

Please sign in to comment.