mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 09:56:51 +03:00
bus: properly return an error when we detect a method call timeout
This commit is contained in:
parent
6d99330e26
commit
f8e11cda53
@ -1754,6 +1754,8 @@ _public_ int sd_bus_call(
|
||||
r = bus_poll(bus, true, left);
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (r == 0)
|
||||
return -ETIMEDOUT;
|
||||
|
||||
r = dispatch_wqueue(bus);
|
||||
if (r < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user