Fixed log typo
This commit is contained in:
parent
19e631a7ed
commit
6ad850209c
@ -215,19 +215,19 @@ open class Server<CONNECTION : Connection>(config: ServerConfiguration = ServerC
|
|||||||
var shouldCleanupConnection = false
|
var shouldCleanupConnection = false
|
||||||
|
|
||||||
if (connection.isExpired()) {
|
if (connection.isExpired()) {
|
||||||
logger.debug {"[${connection.sessionId}}] connection expired"}
|
logger.debug {"[${connection.sessionId}] connection expired"}
|
||||||
shouldCleanupConnection = true
|
shouldCleanupConnection = true
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (connection.isClosed()) {
|
else if (connection.isClosed()) {
|
||||||
logger.debug {"[${connection.sessionId}}] connection closed"}
|
logger.debug {"[${connection.sessionId}] connection closed"}
|
||||||
shouldCleanupConnection = true
|
shouldCleanupConnection = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (shouldCleanupConnection) {
|
if (shouldCleanupConnection) {
|
||||||
// remove this connection so there won't be an attempt to poll it again
|
// remove this connection so there won't be an attempt to poll it again
|
||||||
logger.debug {"[${connection.sessionId}}] connection marked for remove"}
|
logger.debug {"[${connection.sessionId}] connection marked for remove"}
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -236,7 +236,7 @@ open class Server<CONNECTION : Connection>(config: ServerConfiguration = ServerC
|
|||||||
false
|
false
|
||||||
}
|
}
|
||||||
}, { connectionToClean ->
|
}, { connectionToClean ->
|
||||||
logger.debug {"[${connectionToClean.sessionId}}] removed connection"}
|
logger.debug {"[${connectionToClean.sessionId}] removed connection"}
|
||||||
|
|
||||||
// have to free up resources!
|
// have to free up resources!
|
||||||
handshake.cleanup(connectionToClean)
|
handshake.cleanup(connectionToClean)
|
||||||
|
Loading…
Reference in New Issue
Block a user