v0.0.603
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Has been cancelled
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Has been cancelled
This commit is contained in:
@@ -79,10 +79,14 @@ func (d *DelayedCombiningInvoker) Request() {
|
||||
}
|
||||
|
||||
func (d *DelayedCombiningInvoker) run() {
|
||||
|
||||
needsExecutorRunningCleanup := true
|
||||
defer func() {
|
||||
d.syncLock.Lock()
|
||||
d.executorRunning.Set(false)
|
||||
d.syncLock.Unlock()
|
||||
if needsExecutorRunningCleanup {
|
||||
d.syncLock.Lock()
|
||||
d.executorRunning.Set(false)
|
||||
d.syncLock.Unlock()
|
||||
}
|
||||
}()
|
||||
|
||||
for {
|
||||
@@ -129,6 +133,9 @@ func (d *DelayedCombiningInvoker) run() {
|
||||
_ = langext.RunPanicSafe(d.action)
|
||||
// =================================================
|
||||
|
||||
d.executorRunning.Set(false) // ensure HasPendingRequests returns fals ein onExecutionDone listener
|
||||
needsExecutorRunningCleanup = false
|
||||
|
||||
for _, fn := range d.onExecutionDone {
|
||||
_ = langext.RunPanicSafe(fn)
|
||||
}
|
||||
|
Reference in New Issue
Block a user