Take dbus name only when the service is ready

This commit is contained in:
AsamK committed 2015-12-16 21:38:32 +01:00
1 parent 60981479d7
commit 61392fd17d
1 file changed
+1 -1
+1 -1
View File
@@ -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);