Logo
Explore Help
Register Sign In
xmyyan/Netcatty
Watch 1
Star 0 Fork 0
mirror of https://github.com/binaricat/Netcatty.git synced 2026-11-21 23:50:45 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
5b38f4663d7c0a2a364f2af799289eb95280d36b
Netcatty/application
T
History
penguinway 5b38f4663d feat(auto-update): add i18n keys for ready-to-install and download-failed toasts
2026-03-11 02:35:18 +08:00
..
i18n
feat(auto-update): add i18n keys for ready-to-install and download-failed toasts
2026-03-11 02:35:18 +08:00
state
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
Powered by Gitea Version: 28.2.0 Page: 38ms Template: 5ms
auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API