aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/application.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdino/src/application.vala b/libdino/src/application.vala
index da098fb4..55bf950c 100644
--- a/libdino/src/application.vala
+++ b/libdino/src/application.vala
@@ -111,10 +111,12 @@ public interface Dino.Application : GLib.Application {
}
protected void add_connection(Account account) {
+ if ((get_flags() & ApplicationFlags.IS_SERVICE) == ApplicationFlags.IS_SERVICE) hold();
stream_interactor.connect_account(account);
}
protected void remove_connection(Account account) {
+ if ((get_flags() & ApplicationFlags.IS_SERVICE) == ApplicationFlags.IS_SERVICE) release();
stream_interactor.disconnect_account(account);
}