0
0

scorch merger checks closeCh

This commit is contained in:
Steve Yen 2017-12-20 14:51:10 -08:00
parent 59797c35fa
commit ea4eb7301b

View File

@ -162,7 +162,11 @@ func (s *Scorch) planMergeAtSnapshot(ourSnapshot *IndexSnapshot) error {
}
}
for _, notification := range notifications {
<-notification
select {
case <-s.closeCh:
return nil
case <-notification:
}
}
return nil
}