bus: properly return an error when we detect a method call timeout

This commit is contained in:
Lennart Poettering 2013-12-12 05:29:56 +01:00
parent 6d99330e26
commit f8e11cda53

View file

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