mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-25 09:25:50 +00:00
fix: Properly track session.json debounce timer for cleanup
- Update session.sessionJsonDebounceTimer when creating new timers - Clear timer reference after callback execution - Remove incorrect initial null assignment - Fixes memory leak where timers continued after session cleanup The bug occurred because the timer ID was only stored in a local variable, preventing proper cleanup during session termination.
This commit is contained in:
parent
bb272ce821
commit
b515d70de7
1 changed files with 1 additions and 1 deletions
|
|
@ -818,7 +818,7 @@ export class PtyManager extends EventEmitter {
|
|||
// Clear the timer reference after execution
|
||||
session.sessionJsonDebounceTimer = null;
|
||||
}, 100);
|
||||
|
||||
|
||||
// Update the session's timer reference
|
||||
session.sessionJsonDebounceTimer = debounceTimer;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue