mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-14 18:03:11 +02: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)
|
if (!req->cancellable || !gtr->thread_pool)
|
||||||
{
|
{
|
||||||
req->resolve_func (req, error);
|
req->resolve_func (req, error);
|
||||||
|
g_mutex_unlock (req->mutex);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user