mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
gdbusserver: Use g_clear_signal_handler
This commit is contained in:
parent
dfa7a5b5b5
commit
5deaf0bfdf
@ -608,8 +608,7 @@ g_dbus_server_stop (GDBusServer *server)
|
||||
/* Right now we don't have any transport not using the listener... */
|
||||
g_assert (server->is_using_listener);
|
||||
g_assert (server->run_signal_handler_id > 0);
|
||||
g_signal_handler_disconnect (server->listener, server->run_signal_handler_id);
|
||||
server->run_signal_handler_id = 0;
|
||||
g_clear_signal_handler (&server->run_signal_handler_id, server->listener);
|
||||
g_socket_service_stop (G_SOCKET_SERVICE (server->listener));
|
||||
server->active = FALSE;
|
||||
g_object_notify (G_OBJECT (server), "active");
|
||||
|
Loading…
Reference in New Issue
Block a user