summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-09-06 18:47:50 -0300
committerBastien Nocera <hadess@hadess.net>2013-09-06 18:47:50 -0300
commit86dcda7f23ba31233025a2c3c419d8ecee337e5f (patch)
tree21535535a8046ffe3165942e5136dedb5c0035df
parent6894f359ef924a13c087ce2a30d18404d50931c8 (diff)
downloadgeoclue-86dcda7f23ba31233025a2c3c419d8ecee337e5f.tar.gz
locator: Check for cancelled error correctly
https://bugs.freedesktop.org/show_bug.cgi?id=69049
-rw-r--r--src/gclue-locator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gclue-locator.c b/src/gclue-locator.c
index 73ec14e..72f2815 100644
--- a/src/gclue-locator.c
+++ b/src/gclue-locator.c
@@ -198,7 +198,7 @@ on_ipclient_search_ready (GObject *source_object,
location = gclue_ipclient_search_finish (ipclient, res, &error);
if (location == NULL) {
- if (error->code != G_IO_ERROR_CANCELLED)
+ if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
g_warning ("Error fetching location from geoip server: %s",
error->message);
g_error_free (error);