# Race is finished but one can still trigger event inside of it

**URL:** <https://forums.unrealengine.com/t/race-is-finished-but-one-can-still-trigger-event-inside-of-it/2089238>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [October 26, 2024, 2:24pm UTC](https://forums.unrealengine.com/t/race-is-finished-but-one-can-still-trigger-event-inside-of-it/2089238 "2024-10-26T14:24:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [October 28, 2024, 12:20pm UTC](https://forums.unrealengine.com/t/race-is-finished-but-one-can-still-trigger-event-inside-of-it/2089238/4 "2024-10-28T12:20:02Z")

</div>

Hey again, I went ahead and reported your issue, I tried to make it a bit simpler though

> [@Loop inside embed loop+race structure never gets cancelled](https://forums.unrealengine.com/t/critical-loop-inside-embed-loop-race-structure-never-gets-cancelled/2092296):
>
> Summary Here’s the repro using { /Fortnite.com/Devices } using { /Verse.org/Simulation } test\_device := class(creative\_device): OnBegin\<override\>()\<suspends\> : void = loop: # Fake loop, will only iterate once Print("START RACE") race: Sleep(1.0) loop: race: Sleep(Inf) loop: Sleep(0.4) Print("LOOPING") #…

> [@Dr.Joske](#):
>
> ```auto
> race:
> Break2.Await()
> loop:
> Wait2.Await()
> Print("0")
> 
> ```

Apparently, if you put this whole part inside a method, it will fix your issue

---

_[View the full topic](https://forums.unrealengine.com/t/race-is-finished-but-one-can-still-trigger-event-inside-of-it/2089238)._
