Fixed kotlin smart cast

This commit is contained in:
Robinson 2022-11-12 00:38:23 +01:00
parent c9eca33e89
commit 7145c23692
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C

View File

@ -527,7 +527,8 @@ open class Client<CONNECTION : Connection>(
handshake.reset()
if (e.cause is ServerException) {
val wrapped = ClientException(e.cause.message!!)
val cause = e.cause!!
val wrapped = ClientException(cause.message!!)
listenerManager.notifyError(wrapped)
throw wrapped
} else {