added endpoint to inUse()

This commit is contained in:
Robinson 2023-08-09 21:45:54 -06:00
parent 6e76160c83
commit d9bac748f8
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 1 additions and 1 deletions

View File

@ -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 {