mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +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()
|
val dbKey = accountManager.databaseKey ?: throw AssertionError()
|
||||||
lifecycleManager.startServices(dbKey)
|
lifecycleManager.startServices(dbKey)
|
||||||
|
lifecycleManager.waitForStartup()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun stop() {
|
override fun stop() {
|
||||||
|
|||||||
@@ -24,10 +24,11 @@ constructor(
|
|||||||
}
|
}
|
||||||
accountManager.createAccount(user, pass)
|
accountManager.createAccount(user, pass)
|
||||||
if (!accountManager.signIn(pass)) {
|
if (!accountManager.signIn(pass)) {
|
||||||
throw java.lang.AssertionError("Password invalid")
|
throw AssertionError("Password invalid")
|
||||||
}
|
}
|
||||||
val dbKey = accountManager.databaseKey ?: throw AssertionError()
|
val dbKey = accountManager.databaseKey ?: throw AssertionError()
|
||||||
lifecycleManager.startServices(dbKey)
|
lifecycleManager.startServices(dbKey)
|
||||||
|
lifecycleManager.waitForStartup()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun stop() {
|
override fun stop() {
|
||||||
|
|||||||
Reference in New Issue
Block a user