[glib] gthreadedresolver: remove a bit of cruft



commit 2f48b4b7fb4d2d1f758ce5a8064ab51ac3d17a12
Author: Dan Winship <danw gnome org>
Date:   Wed Oct 5 08:36:03 2011 -0400

    gthreadedresolver: remove a bit of cruft
    
    Remove a test that only made sense when GThreadedResolver was the base
    class for the two non-threaded resolver classes that no longer exist.

 gio/gthreadedresolver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gthreadedresolver.c b/gio/gthreadedresolver.c
index c1ddd02..5a820be 100644
--- a/gio/gthreadedresolver.c
+++ b/gio/gthreadedresolver.c
@@ -316,7 +316,7 @@ resolve_sync (GThreadedResolver         *gtr,
               GThreadedResolverRequest  *req,
               GError                   **error)
 {
-  if (!req->cancellable || !gtr->thread_pool)
+  if (!req->cancellable)
     {
       req->resolve_func (req, error);
       g_mutex_unlock (&req->mutex);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]