mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-17 06:09:55 +00:00
Store a switchCancel in Tray. Each switchProfile call cancels the previous in-flight goroutine before starting a new one. Because gRPC respects context cancellation, the previous Down/Up RPCs are aborted and rapid clicks always converge to the last selected profile.
30 KiB
30 KiB