Take dbus name only when the service is ready

This commit is contained in:
AsamK 2015-12-16 21:35:35 +01:00
parent 60981479d7
commit 61392fd17d

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);