Skip to content

Commit

Permalink
Merge pull request icecc#89 from mostynb/better_logging_1
Browse files Browse the repository at this point in the history
better logging for 'eof && !HAS_MSG'
  • Loading branch information
llunak committed Apr 18, 2014
2 parents 98fef75 + 2dcc268 commit cfe0352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/comm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,8 @@ Msg *MsgChannel::get_msg(int timeout)
/* If we've seen the EOF, and we don't have a complete message,
then we won't see it anymore. Return that to the caller.
Don't use has_msg() here, as it returns true for eof. */
if (eof && instate != HAS_MSG) {
trace() << "eof && !HAS_MSG\n";
if (at_eof()) {
trace() << "saw eof without complete msg! " << instate << endl;
return 0;
}

Expand Down

0 comments on commit cfe0352

Please sign in to comment.