Better handshake control during generic exceptions

This commit is contained in:
Robinson 2022-06-27 01:45:10 +02:00
parent 16119bdf7d
commit da4dc4d9c9
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C

View File

@ -467,7 +467,9 @@ open class Client<CONNECTION : Connection>(
}
} catch (e: Exception) {
logger.error(e) { "Un-recoverable error during handshake. Aborting." }
logger.error(e) { "[${handshake.connectKey}] : Un-recoverable error during handshake. Aborting." }
handshake.reset()
listenerManager.notifyError(e)
throw e
}