This website requires JavaScript.
Explore
Help
Register
Sign In
xmyyan
/
Netcatty
Watch
1
Star
0
Fork
0
mirror of
https://github.com/binaricat/Netcatty.git
synced
2026-11-24 17:32:18 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
v1.0.44
Netcatty
/
infrastructure
T
History
bincxz
f4d833497d
fix: ref-count singleton effects and use only stopPortForwardByRuleId for cleanup\n\n1. Replace boolean guard flags (reconnectCancelListenerActive,\n heartbeatActive) with ref-counting. Resources are created when\n count goes 0→1 and destroyed when count goes 1→0. The previous\n boolean approach broke when React ran child effects before parent\n ones: opening the Port Forwarding page let the child register\n the listener/heartbeat, but navigating away tore them down even\n though the App instance was still mounted.\n\n2. stopAndCleanupRule now uses only stopPortForwardByRuleId (which\n sets tunnel.cancelled = true before conn.end()). The old code\n called stopPortForward(tunnelId) first, which deletes the\n main-process tunnel entry immediately — making the cancelled\n flag invisible to conn.on('close') and causing intentional\n deletions to surface as error toasts.
2026-03-10 02:50:58 +08:00
..
config
feat: add bookmark support for local SFTP directories (
#260
)
2026-03-05 00:32:40 +08:00
parsers
feat: Custom terminal themes with .itermcolors import (
#245
)
2026-03-03 19:27:37 +08:00
persistence
fix: address Codex review — serialize async writes & fix WebDAV token detection
2026-02-13 19:12:21 +08:00
services
fix: ref-count singleton effects and use only stopPortForwardByRuleId for cleanup\n\n1. Replace boolean guard flags (reconnectCancelListenerActive,\n heartbeatActive) with ref-counting. Resources are created when\n count goes 0→1 and destroyed when count goes 1→0. The previous\n boolean approach broke when React ran child effects before parent\n ones: opening the Port Forwarding page let the child register\n the listener/heartbeat, but navigating away tore them down even\n though the App instance was still mounted.\n\n2. stopAndCleanupRule now uses only stopPortForwardByRuleId (which\n sets tunnel.cancelled = true before conn.end()). The old code\n called stopPortForward(tunnelId) first, which deletes the\n main-process tunnel entry immediately — making the cancelled\n flag invisible to conn.on('close') and causing intentional\n deletions to surface as error toasts.
2026-03-10 02:50:58 +08:00