try to make ascii reader a little bit more robust to failure - mainly ignore messages after a reader has disabled itself

This commit is contained in:
Bernhard Amann 2012-02-22 08:56:45 -08:00
parent d5b413c4e7
commit 531189b5fd
3 changed files with 31 additions and 4 deletions

View file

@ -177,7 +177,12 @@ protected:
*
* A reader implementation must override this method but it can just ignore
* calls, if a forced update does not fit the input source or the current input
* reading mode
* reading mode.
*
* If it returns false, it will be assumed that a fatal error has occured
* that prevents the reader from further operation; it will then be
* disabled and eventually deleted. When returning false, an implementation
* should also call Error to indicate what happened.
*/
virtual bool DoUpdate() = 0;