mirror of
https://git.sr.ht/~phw/scotty
synced 2025-05-12 11:07:04 +02:00
Use a WaitGroup to wait for both export and import goroutine to finish
This commit is contained in:
parent
17cee9cb8b
commit
a87c42059f
4 changed files with 26 additions and 14 deletions
|
@ -60,8 +60,7 @@ func setupProgressBars(updateChan chan models.TransferProgress) progressBarUpdat
|
|||
return u
|
||||
}
|
||||
|
||||
func (u *progressBarUpdater) wait() {
|
||||
// FIXME: This should probably be closed elsewhere
|
||||
func (u *progressBarUpdater) close() {
|
||||
close(u.updateChan)
|
||||
u.progress.Wait()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue