[gnome-photos] update-mtime-job: Be robust against PhotosTrackerQueue failures



commit 2da170f1abaf3dec60a13939799524a5baf7e7b7
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Dec 29 23:13:47 2013 +0100

    update-mtime-job: Be robust against PhotosTrackerQueue failures
    
    Fixes: https://bugzilla.gnome.org/704947

 src/photos-update-mtime-job.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-update-mtime-job.c b/src/photos-update-mtime-job.c
index 4ce603f..7234362 100644
--- a/src/photos-update-mtime-job.c
+++ b/src/photos-update-mtime-job.c
@@ -162,6 +162,13 @@ photos_update_mtime_job_run (PhotosUpdateMtimeJob *self,
   PhotosUpdateMtimeJobPrivate *priv = self->priv;
   PhotosQuery *query;
 
+  if (G_UNLIKELY (priv->queue == NULL))
+    {
+      if (callback != NULL)
+        (*callback) (user_data);
+      return;
+    }
+
   priv->callback = callback;
   priv->user_data = user_data;
 


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