paperbox r90 - in trunk: . src



Author: markoa
Date: Sun Jan 13 16:56:25 2008
New Revision: 90
URL: http://svn.gnome.org/viewvc/paperbox?rev=90&view=rev

Log:
Cancel idle retrieval if trackerd is unresponsive

Modified:
   trunk/ChangeLog
   trunk/src/browser.cc

Modified: trunk/src/browser.cc
==============================================================================
--- trunk/src/browser.cc	(original)
+++ trunk/src/browser.cc	Sun Jan 13 16:56:25 2008
@@ -73,7 +73,15 @@
     bool
     Browser::on_idle_initial_document_retrieval()
     {
-        LOG_FUNCTION_SCOPE_NORMAL_DD;
+        if (uri_queue_.empty()) {
+            // The queue being empty at the beginning and not after a pop()
+            // means that  either there is nothing on the desktop,
+            // or trackerd is (re)indexing and being unresponsive.
+            LOG_DD("Cancelling document retrieval from tracker - "
+                   << "is it (re)indexing? "
+                   << "Try running PaperBox again after a minute.");
+            return false; // idle function done
+        }
 
         Glib::ustring uri = uri_queue_.front();
 



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