Skip to content

Commit

Permalink
Merge pull request #209 from fengzhuye/master
Browse files Browse the repository at this point in the history
rtt Logger: clear any fail and eof flags
  • Loading branch information
meyerj authored Apr 28, 2017
2 parents df27a26 + 246144e commit 6186784
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rtt/Logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,11 @@ namespace RTT
os::MutexLock lock( d->inpguard );
getline( d->remotestream, line );
if ( !d->remotestream )
{
d->remotestream.str("");
d->remotestream.clear();
d->messagecnt = 0;
}
}
if ( !line.empty() )
--d->messagecnt;
Expand Down

0 comments on commit 6186784

Please sign in to comment.