mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 02:39:05 +01:00
[headless] wait for lifecycle manager to finish starting
before starting web server
This commit is contained in:
@@ -41,6 +41,7 @@ constructor(
|
||||
}
|
||||
val dbKey = accountManager.databaseKey ?: throw AssertionError()
|
||||
lifecycleManager.startServices(dbKey)
|
||||
lifecycleManager.waitForStartup()
|
||||
}
|
||||
|
||||
override fun stop() {
|
||||
|
||||
@@ -24,10 +24,11 @@ constructor(
|
||||
}
|
||||
accountManager.createAccount(user, pass)
|
||||
if (!accountManager.signIn(pass)) {
|
||||
throw java.lang.AssertionError("Password invalid")
|
||||
throw AssertionError("Password invalid")
|
||||
}
|
||||
val dbKey = accountManager.databaseKey ?: throw AssertionError()
|
||||
lifecycleManager.startServices(dbKey)
|
||||
lifecycleManager.waitForStartup()
|
||||
}
|
||||
|
||||
override fun stop() {
|
||||
|
||||
Reference in New Issue
Block a user