diff options
Diffstat (limited to 'src/agent.c')
-rw-r--r-- | src/agent.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/agent.c b/src/agent.c index e8f9c651..6b7c8d03 100644 --- a/src/agent.c +++ b/src/agent.c @@ -285,6 +285,14 @@ static void simple_agent_reply(DBusPendingCall *call, void *user_data) err.name, err.message); cb(agent, &err, req->user_data); + + if (dbus_error_has_name(&err, DBUS_ERROR_NO_REPLY)) { + agent_cancel(agent); + dbus_message_unref(message); + dbus_error_free(&err); + return; + } + dbus_error_free(&err); goto done; } |