mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-24 21:50:36 +01:00
platform: fix draining netlink socket on cache resync
Fixes: 809c547b6c
This commit is contained in:
parent
66438de577
commit
8ab968d4ef
1 changed files with 6 additions and 0 deletions
|
|
@ -5659,6 +5659,12 @@ continue_reading:
|
|||
goto continue_reading;
|
||||
}
|
||||
stop:
|
||||
if (!handle_events) {
|
||||
/* when we don't handle events, we want to drain all messages from the socket
|
||||
* without handling the messages (but still check for sequence numbers).
|
||||
* Repeat reading. */
|
||||
goto continue_reading;
|
||||
}
|
||||
err = 0;
|
||||
out:
|
||||
nlmsg_free (msg);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue