aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/application.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-10-30 01:43:26 +0100
committerfiaxh <git@mx.ax.lt>2017-10-31 17:32:48 +0100
commitd82194af58c8ff92634ce57ef293894ec4422efa (patch)
tree17208ffd0b57dfa131e91d351c38cd75d2ad7ea7 /libdino/src/application.vala
parent0102abeec1d2055b19dccbb7edc7f06e527642b1 (diff)
downloaddino-d82194af58c8ff92634ce57ef293894ec4422efa.tar.gz
dino-d82194af58c8ff92634ce57ef293894ec4422efa.zip
Go offline before quiting application
fixes #141
Diffstat (limited to 'libdino/src/application.vala')
-rw-r--r--libdino/src/application.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdino/src/application.vala b/libdino/src/application.vala
index c9283127..ff0827f8 100644
--- a/libdino/src/application.vala
+++ b/libdino/src/application.vala
@@ -42,6 +42,9 @@ public interface Dino.Application : GLib.Application {
stream_interactor.connection_manager.log_options = print_xmpp;
restore();
});
+ shutdown.connect(() => {
+ stream_interactor.connection_manager.make_offline_all();
+ });
open.connect((files, hint) => {
if (files.length != 1) {
warning("Can't handle more than one URI at once.");