From 0b965c7fcb8ee565c3bd00ce831176cef2ec4164 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 15 May 2023 03:16:07 +0100 Subject: [PATCH] [MIRROR] Fix SHOULD_NOT_SLEEP hit in infra assemblies [MDB IGNORE] (#21168) * Fix SHOULD_NOT_SLEEP hit in infra assemblies (#75408) See #75232 refreshBeam() is a sleeping proc, dropped gets called on Destroy() * Fix SHOULD_NOT_SLEEP hit in infra assemblies --------- Co-authored-by: Jordan Dominion --- code/modules/assembly/infrared.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/assembly/infrared.dm b/code/modules/assembly/infrared.dm index ce13f09a40c..3fc1de43b3c 100644 --- a/code/modules/assembly/infrared.dm +++ b/code/modules/assembly/infrared.dm @@ -75,7 +75,7 @@ if(holder) holder_movement() //sync the dir of the device as well if it's contained in a TTV or an assembly holder else - refreshBeam() + INVOKE_ASYNC(src, PROC_REF(refreshBeam)) /obj/item/assembly/infra/process() if(!on || !secured)