mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 02:28:18 +02: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;
|
goto continue_reading;
|
||||||
}
|
}
|
||||||
stop:
|
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;
|
err = 0;
|
||||||
out:
|
out:
|
||||||
nlmsg_free (msg);
|
nlmsg_free (msg);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue