summaryrefslogtreecommitdiff
path: root/libzeitgeist/log.vala
diff options
context:
space:
mode:
Diffstat (limited to 'libzeitgeist/log.vala')
-rw-r--r--libzeitgeist/log.vala22
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)