Skip to content
Snippets Groups Projects
Commit 4c8d7c24 authored by Philip Withnall's avatar Philip Withnall
Browse files

gdbusserver: Keep a strong reference to the server in callbacks


The `on_run()` function could be executed in any worker thread from the
`GThreadedSocketListener`, but didn’t previously hold a strong reference
to the `GDBusServer`, which meant the server could be finalised in
another thread while `on_run()` was still running.

This was not ideal.

Hold a strong reference to the `GDBusServer` while the socket listener
is listening, i.e. between every paired call to `g_dbus_server_start()`
and `g_dbus_server_stop()`.

Signed-off-by: default avatarPhilip Withnall <withnall@endlessm.com>

Fixes: #1318
parent 30b7623e
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment