Added back isRunning()

This commit is contained in:
nathan 2020-09-11 01:27:46 +02:00
parent 58a5d31df4
commit 960d1e4660

View File

@ -615,15 +615,15 @@ internal constructor(val type: Class<*>, internal val config: Configuration) : A
shutdownLatch.doWait() shutdownLatch.doWait()
} }
// /** /**
// * Checks to see if an endpoint (using the current configuration) is running. * Checks to see if an endpoint (using the current configuration) is running.
// * *
// * @return true if the media driver is active and running * @return true if the media driver is active and running
// */ */
// fun isRunning(): Boolean { fun isRunning(): Boolean {
// // if the media driver is running, it will be a quick connection. Usually 100ms or so // if the media driver is running, it will be a quick connection. Usually 100ms or so
// return configureMediaDriverContext().isDriverActive(1_000) { } return mediaDriverContext.isDriverActive(1_000) { }
// } }
/** /**
* Checks to see if an endpoint (using the specified configuration) is running. * Checks to see if an endpoint (using the specified configuration) is running.