From 960d1e46608e9f2c265644933d44b546ce16f517 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 11 Sep 2020 01:27:46 +0200 Subject: [PATCH] Added back isRunning() --- src/dorkbox/network/connection/EndPoint.kt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/dorkbox/network/connection/EndPoint.kt b/src/dorkbox/network/connection/EndPoint.kt index 8b5300cd..72867ada 100644 --- a/src/dorkbox/network/connection/EndPoint.kt +++ b/src/dorkbox/network/connection/EndPoint.kt @@ -615,15 +615,15 @@ internal constructor(val type: Class<*>, internal val config: Configuration) : A shutdownLatch.doWait() } -// /** -// * Checks to see if an endpoint (using the current configuration) is running. -// * -// * @return true if the media driver is active and running -// */ -// fun isRunning(): Boolean { -// // if the media driver is running, it will be a quick connection. Usually 100ms or so -// return configureMediaDriverContext().isDriverActive(1_000) { } -// } + /** + * Checks to see if an endpoint (using the current configuration) is running. + * + * @return true if the media driver is active and running + */ + fun isRunning(): Boolean { + // if the media driver is running, it will be a quick connection. Usually 100ms or so + return mediaDriverContext.isDriverActive(1_000) { } + } /** * Checks to see if an endpoint (using the specified configuration) is running.