From 9f0984c63b4279cb50818e7545fa45a5c7f991ce Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 4 Aug 2021 11:22:54 +0200 Subject: [PATCH] nm-sudo: don't register pending job for current operations Currently we only implmement two operations (Ping() and GetFD()). Both complete right away. There is no need to register a pending job, if the job does not get processed asynchronously. In the future, we may have methods that need asynchronous processing and where we need to register them as pending job. --- src/nm-sudo/nm-sudo.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/nm-sudo/nm-sudo.c b/src/nm-sudo/nm-sudo.c index a5d98e8eb4..975d69b4a0 100644 --- a/src/nm-sudo/nm-sudo.c +++ b/src/nm-sudo/nm-sudo.c @@ -302,8 +302,6 @@ _bus_method_call(GDBusConnection * connection, return; } - _pending_job_register_object(gl, G_OBJECT(invocation)); - _LOGT("dbus: request sender=%s, %s%s", sender, method_name,