added endpoint to inUse()
This commit is contained in:
parent
6e76160c83
commit
d9bac748f8
|
@ -757,7 +757,7 @@ class AeronDriver private constructor(config: Configuration, val logger: KLogger
|
|||
* @return true if the driver was successfully stopped.
|
||||
*/
|
||||
suspend fun closeIfSingle(): Boolean = lock.withLock {
|
||||
if (!isInUse()) {
|
||||
if (!isInUse(endPoint)) {
|
||||
if (logEverything) {
|
||||
internal.close(endPoint, logger)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue