diff --git a/main.go b/main.go index 549d1e4..2bd7b2f 100644 --- a/main.go +++ b/main.go @@ -30,8 +30,9 @@ var DequeueHandler = triggered.RegisterExecute(func(params *triggered.Params[boo item, err := stateClient.PopItem(cs, "unity3d") if err != nil { log.Println(err) - break + return } + if item == nil { time.Sleep(time.Millisecond * 100) return