platform: fix draining netlink socket on cache resync

Fixes: 809c547b6c
This commit is contained in:
Thomas Haller 2016-01-25 14:38:35 +01:00
parent 66438de577
commit 8ab968d4ef

View file

@ -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);