Skip to content

Commit

Permalink
Always stop progress updates after install finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Dec 29, 2023
1 parent 83e67a4 commit 4a8484b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/bindings/ficsitcli/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ func (f *FicsitCLI) validateInstall(installation *InstallationInfo, progressItem

progressTicker := time.NewTicker(100 * time.Millisecond)
done := make(chan bool)
defer progressTicker.Stop()
defer close(done)

go func() {
for {
select {
Expand Down Expand Up @@ -106,8 +109,6 @@ func (f *FicsitCLI) validateInstall(installation *InstallationInfo, progressItem
return oldValue, false
})
}
progressTicker.Stop()
close(done)
}()

installErr := installation.Installation.Install(f.ficsitCli, installChannel)
Expand Down

0 comments on commit 4a8484b

Please sign in to comment.