mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-27 12:52:27 +02:00
cmd/cli: fix missing wg.Done call
This commit is contained in:
committed by
Cuong Manh Le
parent
3132d1b032
commit
ae6945cedf
@@ -486,6 +486,7 @@ func (p *prog) run(reload bool, reloadCh chan struct{}) {
|
|||||||
if !isMobile() && !reload {
|
if !isMobile() && !reload {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
|
defer wg.Done()
|
||||||
p.runClientInfoDiscover(ctx)
|
p.runClientInfoDiscover(ctx)
|
||||||
}()
|
}()
|
||||||
go p.watchLinkState(ctx)
|
go p.watchLinkState(ctx)
|
||||||
|
|||||||
Reference in New Issue
Block a user