diff options
author | Albert Astals Cid <albert.astals@canonical.com> | 2015-01-29 16:28:40 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2015-01-29 16:33:28 +0100 |
commit | 63dba18ce5de08cb0f5ca6b605c53d05b1977092 (patch) | |
tree | a382e01ff2b2ae2d2a7e8018aed6f54f0975a3d3 /libzeitgeist | |
parent | ce9affa87a8775ef4c45d7508d1b519319b9162a (diff) | |
download | zeitgeist-63dba18ce5de08cb0f5ca6b605c53d05b1977092.tar.gz |
Log: Add finally {} to try {} catch {}
Need to quit the loop also on error, otherwise we leave a
stray main loop around.
https://bugs.freedesktop.org/show_bug.cgi?id=88846
Diffstat (limited to 'libzeitgeist')
-rw-r--r-- | libzeitgeist/log.vala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libzeitgeist/log.vala b/libzeitgeist/log.vala index 3de1c7de..100f0cc6 100644 --- a/libzeitgeist/log.vala +++ b/libzeitgeist/log.vala @@ -103,7 +103,10 @@ public class Log : QueuedProxyWrapper err.message); proxy_unavailable (err); } - mainloop.quit(); + finally + { + mainloop.quit(); + } }); mainloop.run(); |