GUACAMOLE-1224: Ensure all user sessions are explicitly invalidated prior to application shutdown.
This commit is contained in:
1 parent
8c36eaf55d
commit
63de886e5d
1 file changed
+6
@@ -225,7 +225,13 @@ public class HashTokenSessionMap implements TokenSessionMap {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void shutdown() {
|
public void shutdown() {
|
||||||
|
|
||||||
|
// Terminate the automatic session invalidation thread
|
||||||
executor.shutdownNow();
|
executor.shutdownNow();
|
||||||
|
|
||||||
|
// Forcibly invalidate any remaining sessions
|
||||||
|
sessionMap.values().stream().forEach(GuacamoleSession::invalidate);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user