From 61392fd17d730ec561413cf07aa368c667caaab1 Mon Sep 17 00:00:00 2001 From: AsamK Date: Wed, 16 Dec 2015 21:35:35 +0100 Subject: [PATCH] Take dbus name only when the service is ready --- src/main/java/org/asamk/textsecure/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/asamk/textsecure/Main.java b/src/main/java/org/asamk/textsecure/Main.java index 265059f7..2f2825a8 100644 --- a/src/main/java/org/asamk/textsecure/Main.java +++ b/src/main/java/org/asamk/textsecure/Main.java @@ -288,8 +288,8 @@ public class Main { busType = DBusConnection.SESSION; } conn = DBusConnection.getConnection(busType); - conn.requestBusName(TEXTSECURE_BUSNAME); conn.exportObject(TEXTSECURE_OBJECTPATH, m); + conn.requestBusName(TEXTSECURE_BUSNAME); } catch (DBusException e) { e.printStackTrace(); System.exit(3);