From f3b7b8d07ae7fa7f9cf2a78b27af8575d3861f7a Mon Sep 17 00:00:00 2001 From: Graham Date: Tue, 28 Nov 2023 14:38:25 +0000 Subject: [PATCH] Remove urgent requests from prefetch queue This stops us from responding twice if a prefetch request is upgraded to urgent by the client. Signed-off-by: Graham --- game/src/main/kotlin/org/openrs2/game/net/js5/Js5Client.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/game/src/main/kotlin/org/openrs2/game/net/js5/Js5Client.kt b/game/src/main/kotlin/org/openrs2/game/net/js5/Js5Client.kt index 93daca1d4a..9b5fd1d9b3 100644 --- a/game/src/main/kotlin/org/openrs2/game/net/js5/Js5Client.kt +++ b/game/src/main/kotlin/org/openrs2/game/net/js5/Js5Client.kt @@ -13,6 +13,7 @@ public class Js5Client( if (request.prefetch) { prefetch += request } else { + prefetch -= request urgent += request } }