mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
sd-rtnl: rtnl_call - don't dispatch wqueue after timeout has passed
Only a minor change as the timeout would be hit soon thereafetr at the next loop.
This commit is contained in:
parent
f55dc7c96e
commit
b551ddd380
@ -701,6 +701,8 @@ int sd_rtnl_call(sd_rtnl *rtnl,
|
||||
r = rtnl_poll(rtnl, true, left);
|
||||
if (r < 0)
|
||||
return r;
|
||||
else if (r == 0)
|
||||
return -ETIMEDOUT;
|
||||
|
||||
r = dispatch_wqueue(rtnl);
|
||||
if (r < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user