Fixed pingManager access

This commit is contained in:
Robinson 2023-03-01 22:39:29 +01:00
parent 8694f97217
commit b29e6e583c
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
2 changed files with 2 additions and 2 deletions

View File

@ -911,7 +911,7 @@ open class Client<CONNECTION : Connection>(
val c = connection0 val c = connection0
if (c != null) { if (c != null) {
return pingManager.ping(c, pingTimeoutSeconds, actionDispatch, responseManager, logger, function) return super.ping(c, pingTimeoutSeconds, function)
} else { } else {
logger.error(ClientException("Cannot send a ping when there is no connection!")) { "No connection!" } logger.error(ClientException("Cannot send a ping when there is no connection!")) { "No connection!" }
} }

View File

@ -235,7 +235,7 @@ internal constructor(val type: Class<*>,
private val streamingManager = StreamingManager<CONNECTION>(logger, messageDispatch) private val streamingManager = StreamingManager<CONNECTION>(logger, messageDispatch)
internal val pingManager = PingManager<CONNECTION>() private val pingManager = PingManager<CONNECTION>()