Closed veezhang closed 1 year ago
fix: panic send on closed channel in reader pkg
The number of times statsMgr.StatsCh <- base.NewFileDoneStats(filename) has reached the number of readers, then <-statsMgr.DoneCh return, but not all readers have exited. So, it's need to wait for it exit.
statsMgr.StatsCh <- base.NewFileDoneStats(filename)
<-statsMgr.DoneCh
fix #219 #95
fix: panic send on closed channel in reader pkg
The number of times
statsMgr.StatsCh <- base.NewFileDoneStats(filename)
has reached the number of readers, then<-statsMgr.DoneCh
return, but not all readers have exited. So, it's need to wait for it exit.