diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-02-13 16:02:01 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-02-13 16:02:01 +0100 |
commit | 2987621505237e686e3c48308adc8d8d874c10e4 (patch) | |
tree | e1ab38b05ae6828863c43777ca702411c944ae6d | |
parent | 91533b997754bd6ec3f4f53d5426cf5d39c5d96b (diff) | |
download | zeitgeist-2987621505237e686e3c48308adc8d8d874c10e4.tar.gz |
log: Fix uncaught error warning
-rw-r--r-- | libzeitgeist/log.vala | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/libzeitgeist/log.vala b/libzeitgeist/log.vala index 82c7584a..9b488af2 100644 --- a/libzeitgeist/log.vala +++ b/libzeitgeist/log.vala @@ -575,17 +575,19 @@ public class Log : QueuedProxyWrapper */ public void remove_monitor (owned Monitor monitor) throws Error { - try + proxy.remove_monitor.begin (monitor.get_path (), null, (obj, res) => { - proxy.remove_monitor.begin (monitor.get_path ()); - } - catch (IOError err) - { - warning ("Failed to remove monitor from Zeitgeist. Retracting" + - "%s from the bus nonetheless: %s", monitor.get_path (), - err.message); - return; - } + try + { + ((RemoteLog) obj).remove_monitor.end (res); + } + catch (Error err) + { + warning ("Failed to remove monitor from Zeitgeist. Retracting" + + "%s from the bus nonetheless: %s", monitor.get_path (), + err.message); + } + }); uint registration_id = monitors.lookup (monitor); if (registration_id != 0) |