mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 07:40:28 +01:00
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:
parent
dc97a3b39b
commit
3f00899bde
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue