cmd/cli: fix missing wg.Done call

This commit is contained in:
Cuong Manh Le
2025-02-07 01:02:06 +07:00
committed by Cuong Manh Le
parent 3132d1b032
commit ae6945cedf

View File

@@ -486,6 +486,7 @@ func (p *prog) run(reload bool, reloadCh chan struct{}) {
if !isMobile() && !reload {
wg.Add(1)
go func() {
defer wg.Done()
p.runClientInfoDiscover(ctx)
}()
go p.watchLinkState(ctx)