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:
Alexander Larsson 2009-05-15 10:05:55 +02:00
parent f662e7e86b
commit a258ec3b5b

View File

@ -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;
}