trickle handler daemon: mark message as handled even if handler returns error.

This is because errors in general are non-recoverable,
and we'll end up retrying infinitely.
If an error actually is recoverable, exit().
This commit is contained in:
David Anderson 2014-03-29 09:25:01 -07:00
parent f5fea9c3d3
commit e91eee67da
1 changed files with 5 additions and 2 deletions

View File

@ -67,9 +67,12 @@ bool do_trickle_scan() {
} }
retval = handle_trickle(mfh); retval = handle_trickle(mfh);
if (!retval) { if (!retval) {
mfh.handled = true; log_messages.printf(MSG_CRITICAL,
mfh.update(); "handle_trickle(): %s", boincerror(retval)
);
} }
mfh.handled = true;
mfh.update();
found = true; found = true;
} }
return found; return found;