aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-11-22 20:06:50 +0100
committerfiaxh <git@mx.ax.lt>2017-11-23 01:28:29 +0100
commit9165c4db278b2d3da636d53e89c3b80cff66977f (patch)
tree84f227a12389ec2b3c3c7a578f913bc763760b53 /libdino/src
parentde133218dab0ac1729dbfc32177979133c15f53b (diff)
downloaddino-9165c4db278b2d3da636d53e89c3b80cff66977f.tar.gz
dino-9165c4db278b2d3da636d53e89c3b80cff66977f.zip
Async service lookup, connect and write
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/application.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/libdino/src/application.vala b/libdino/src/application.vala
index ff0827f8..55913a99 100644
--- a/libdino/src/application.vala
+++ b/libdino/src/application.vala
@@ -40,7 +40,10 @@ public interface Dino.Application : GLib.Application {
activate.connect(() => {
stream_interactor.connection_manager.log_options = print_xmpp;
- restore();
+ Idle.add(() => {
+ restore();
+ return false;
+ });
});
shutdown.connect(() => {
stream_interactor.connection_manager.make_offline_all();