GNOME Bugzilla – Bug 673372
GDBusServer does not stop listening if you destroy it without calling _start()
Last modified: 2018-05-24 13:56:50 UTC
Created attachment 211139 [details] A little application demonstrating the problem. If you create a GDBusServer with g_dbus_server_new_sync(), but never call g_dbus_server_start(), calling g_dbus_server_stop() and then unreffing it apparently does not stop it listening on the socket. Subsequent attempts to create a GDBusServer for the same address fail with “Error binding to address: Address already in use (g-io-error-quark, 33)”. Calling g_dbus_server_start() immediately before calling g_dbus_server_stop() and unreffing it makes it clean up after itself properly.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/530.