fix(PortProxy): Fix cleanup timer reset for PortProxy

This commit is contained in:
2025-02-26 19:00:09 +00:00
parent 0f2e6d688c
commit 45390c4389
3 changed files with 10 additions and 1 deletions

View File

@ -316,12 +316,16 @@ export class PortProxy {
incomingActive = true;
if (incomingActive && outgoingActive) {
resetCleanupTimer();
incomingActive = false;
outgoingActive = false;
}
});
targetSocket.on('data', () => {
outgoingActive = true;
if (incomingActive && outgoingActive) {
resetCleanupTimer();
incomingActive = false;
outgoingActive = false;
}
});
}