Commit 72f692ea authored by Philip Withnall's avatar Philip Withnall 🚫
Browse files

gdbusnamewatching: Ensure GDestroyNotify is called in correct context



The documentation for `g_bus_watch_name()` implies that the
`GDestroyNotify` for the user data will be called in the current thread
default `GMainContext`. Currently, it could be called in any thread, as
`client_unref()` can be called in any thread.

Fix that by deferring it to an idle source if `client_unref()` finalises
the `Client` object in a different thread.

Signed-off-by: default avatarPhilip Withnall <pwithnall@endlessos.org>
parent 323c5d7e
Pipeline #291054 passed with stages
in 30 minutes and 56 seconds
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