mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 13:06:14 +01:00
Fix deadlock in threaded resolver
When you're using the threaded resolver and using a sync call without a cancellable the resolve_sync forgot to unlock the initial req->mutex lock, leading to a deadlock when unrefing the request.
This commit is contained in:
parent
f662e7e86b
commit
a258ec3b5b
@ -319,6 +319,7 @@ resolve_sync (GThreadedResolver *gtr,
|
||||
if (!req->cancellable || !gtr->thread_pool)
|
||||
{
|
||||
req->resolve_func (req, error);
|
||||
g_mutex_unlock (req->mutex);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user