platform: continue reading in event_handler_recvmsgs() when not handling events

If @handle_events is FALSE, we want to drain the socket. In that case
even when encountering an error error we don't want to abort, but instead
continue reading the next message.
This commit is contained in:
Thomas Haller 2016-02-12 16:29:46 +01:00
parent dc97a3b39b
commit 3f00899bde

View file

@ -5698,8 +5698,11 @@ continue_reading:
event_seq_check (platform, msg, seq_result);
if (abort_parsing)
if (abort_parsing) {
if (!handle_events)
goto continue_reading;
goto out;
}
err = 0;
hdr = nlmsg_next (hdr, &n);