diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js index 9ab413e6f..4fc5000b8 100644 --- a/js/ui/remoteSearch.js +++ b/js/ui/remoteSearch.js @@ -236,8 +236,10 @@ const RemoteSearchProvider = new Lang.Class({ _getResultsFinished: function(results, error, callback) { if (error) { - if (!error.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED)) - log('Received error from DBus search provider %s: %s'.format(this.id, String(error))); + if (error.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED)) + return; + + log('Received error from DBus search provider %s: %s'.format(this.id, String(error))); callback([]); return; }