mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-1224: Ensure all user sessions are explicitly invalidated prior to application shutdown.
This commit is contained in:
@@ -225,7 +225,13 @@ public class HashTokenSessionMap implements TokenSessionMap {
|
||||
|
||||
@Override
|
||||
public void shutdown() {
|
||||
|
||||
// Terminate the automatic session invalidation thread
|
||||
executor.shutdownNow();
|
||||
|
||||
// Forcibly invalidate any remaining sessions
|
||||
sessionMap.values().stream().forEach(GuacamoleSession::invalidate);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user