Skip to content

Commit

Permalink
Merge pull request #575 from iotaledger/fix/timed-queue-panic
Browse files Browse the repository at this point in the history
timed.Queue should not default to PanicOnModificationsAfterShutdown
  • Loading branch information
karimodm authored Oct 9, 2023
2 parents 86973b2 + 04d9e5b commit 3b7699b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/timed/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"sync"
"time"

"github.com/iotaledger/hive.go/ds/bitmask"
"github.com/iotaledger/hive.go/runtime/options"
)

Expand Down Expand Up @@ -53,7 +54,7 @@ func (t *Executor) WorkerCount() int {

// Shutdown shuts down the TimedExecutor and waits until the executor has shutdown gracefully.
func (t *Executor) Shutdown(optionalShutdownFlags ...ShutdownFlag) {
shutdownFlags := PanicOnModificationsAfterShutdown
var shutdownFlags bitmask.BitMask
for _, optionalShutdownFlag := range optionalShutdownFlags {
shutdownFlags |= optionalShutdownFlag
}
Expand Down

0 comments on commit 3b7699b

Please sign in to comment.