Added initialize state for endpoints

This commit is contained in:
Robinson 2023-05-28 17:06:01 +02:00
parent d8455e1faf
commit b42b456daf
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
3 changed files with 2 additions and 3 deletions

View File

@ -434,6 +434,7 @@ open class Client<CONNECTION : Connection>(
// we are done with initial configuration, now initialize aeron and the general state of this endpoint
try {
startDriver()
initializeState()
} catch (e: Exception) {
logger.error(e) { "Unable to start the network driver" }
return

View File

@ -231,6 +231,7 @@ open class Server<CONNECTION : Connection>(
try {
startDriver()
initializeState()
} catch (e: Exception) {
logger.error(e) { "Unable to start the network driver" }
return@runBlocking

View File

@ -249,9 +249,6 @@ internal constructor(val type: Class<*>,
private val pingManager = PingManager<CONNECTION>()
init {
require(EventDispatcher.isActive) { "The Event Dispatch is no longer active. It has been shutdown" }
require(messageDispatch.isActive) { "The Message Dispatch is no longer active. It has been shutdown" }