fix: cleanup files

This commit is contained in:
LukeGus
2025-12-30 20:00:05 -06:00
parent 1f033bc13a
commit 04e1ba22be
4 changed files with 16 additions and 30 deletions

View File

@@ -80,10 +80,6 @@ function cleanupSession(sessionId: string) {
} catch (error) {}
clearTimeout(session.timeout);
delete sshSessions[sessionId];
dockerLogger.info("Docker SSH session cleaned up", {
operation: "session_cleanup",
sessionId,
});
}
}
@@ -472,7 +468,6 @@ app.post("/docker/ssh/connect", async (req, res) => {
cleanupSession(sessionId);
}
// Clean up any stale pending TOTP sessions
if (pendingTOTPSessions[sessionId]) {
try {
pendingTOTPSessions[sessionId].client.end();

View File

@@ -1017,7 +1017,6 @@ wss.on("connection", async (ws: WebSocket, req) => {
finish(responses);
};
// Set timeout for TOTP response
totpTimeout = setTimeout(() => {
if (keyboardInteractiveFinish) {
keyboardInteractiveFinish = null;
@@ -1070,7 +1069,6 @@ wss.on("connection", async (ws: WebSocket, req) => {
finish(responses);
};
// Set timeout for password response
totpTimeout = setTimeout(() => {
if (keyboardInteractiveFinish) {
keyboardInteractiveFinish = null;