@pmatilai commented on this pull request.


> +             fprintf(stderr, "Connection Error (%s)\n", err.message);
+               dbus_error_free(&err);
+           }
+           if (state->bus) {
+               rc = dbus_bus_request_name(state->bus, "org.rpm.announce",
+                                 DBUS_NAME_FLAG_REPLACE_EXISTING , &err);
+           }
+           if (dbus_error_is_set(&err)) {
+               //fprintf(stderr, "Name Error (%s)\n", err.message);
+               dbus_error_free(&err);
+           }
+           if (DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER != rc) {
+               dbus_connection_close(state->bus);
+               dbus_connection_unref(state->bus);
+               state->bus = NULL;
+               state->logging = 0;

Unify this with the code in cleanup hook, maybe close_dbus() helper or such.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1255#pullrequestreview-427927188
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to