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.
This commit is contained in:
Thomas Haller 2021-08-04 11:22:54 +02:00
parent 31c48ec616
commit 9f0984c63b
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

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