code cleanup
This commit is contained in:
parent
77d56b8804
commit
466363901c
|
@ -238,12 +238,13 @@ internal class EventPoller {
|
|||
|
||||
running = false
|
||||
while (!shutdownLatch.await(200)) {
|
||||
logger.error { "Waiting for poller to close. It should not take this long" }
|
||||
logger.error { "Waiting for Network Event Poller to close. It should not take this long" }
|
||||
}
|
||||
configured = false
|
||||
|
||||
if (wasRunning) {
|
||||
dispatchScope.cancel("Closed event dispatch")
|
||||
dispatchScope.cancel("Closed Network Event Poller dispatch")
|
||||
}
|
||||
logger.error { "Closed Network Event Poller: wasRunning=$wasRunning" }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -220,20 +220,12 @@ abstract class EndPoint<CONNECTION : Connection> private constructor(val type: C
|
|||
// NOTE: in the event that we are IPC -- only ONE SERVER can be running IPC at a time for a single driver!
|
||||
if (type == Server::class.java && config.enableIpc) {
|
||||
runBlocking {
|
||||
var configuration = config.copy()
|
||||
val configuration = config.copy()
|
||||
if (AeronDriver.isLoaded(configuration, logger)) {
|
||||
val e = ServerException("Only one server at a time can share a single aeron driver! Make the driver unique or change it's directory: ${configuration.aeronDirectory}")
|
||||
listenerManager.notifyError(e)
|
||||
throw e
|
||||
}
|
||||
|
||||
|
||||
configuration = config.copy()
|
||||
if (AeronDriver.isRunning(configuration, logger)) {
|
||||
val e = ServerException("Only one server at a time can share a single aeron driver! Make the driver unique or change it's directory: ${configuration.aeronDirectory}")
|
||||
listenerManager.notifyError(e)
|
||||
throw e
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue