Fixed cast exception with sessions
This commit is contained in:
parent
6fb5dbb833
commit
d51c878a65
|
@ -355,7 +355,7 @@ open class Connection(connectionParameters: ConnectionParams<*>) {
|
|||
}
|
||||
|
||||
// make sure to save off the RMI objects for session management
|
||||
if (!closeEverything) {
|
||||
if (!closeEverything && endPoint.sessionManager.enabled()) {
|
||||
endPoint.sessionManager.onDisconnect(this as SessionConnection)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue