kevin 4 năm trước cách đây
mục cha
commit
7d7cb836af
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      core/executors/periodicalexecutor.go

+ 1 - 0
core/executors/periodicalexecutor.go

@@ -82,6 +82,7 @@ func (pe *PeriodicalExecutor) Sync(fn func()) {
 }
 
 func (pe *PeriodicalExecutor) Wait() {
+	pe.Flush()
 	pe.wgBarrier.Guard(func() {
 		pe.waitGroup.Wait()
 	})