1
0
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:
Tom Gundersen 2014-12-29 01:54:04 +01:00
parent f55dc7c96e
commit b551ddd380

View File

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