From c37349107255921afde637c0432128147a056014 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Fri, 23 Feb 2024 20:16:03 -0500 Subject: [PATCH] Fix waiting on events never returning if TGS restarts --- src/DMAPI/tgs/v5/topic.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DMAPI/tgs/v5/topic.dm b/src/DMAPI/tgs/v5/topic.dm index e66edc27206..e1f2cb63857 100644 --- a/src/DMAPI/tgs/v5/topic.dm +++ b/src/DMAPI/tgs/v5/topic.dm @@ -177,7 +177,8 @@ reattach_response[DMAPI5_PARAMETER_CUSTOM_COMMANDS] = ListCustomCommands() reattach_response[DMAPI5_PARAMETER_TOPIC_PORT] = GetTopicPort() - pending_events.Cut() + for(var/eventId in pending_events) + pending_events[eventId] = TRUE return reattach_response