mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-15 13:19:56 +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