From 0799bd9aad5b165bc57295b8db46497a5c55755e Mon Sep 17 00:00:00 2001 From: TudbuT Date: Sun, 3 Jul 2022 16:08:07 +0200 Subject: [PATCH] fix data leaking from one instance to the other when UUIDs match --- src/de/tudbut/tryumph/server/BrowserContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/tudbut/tryumph/server/BrowserContext.java b/src/de/tudbut/tryumph/server/BrowserContext.java index 910f10a..0894a0b 100644 --- a/src/de/tudbut/tryumph/server/BrowserContext.java +++ b/src/de/tudbut/tryumph/server/BrowserContext.java @@ -60,7 +60,7 @@ public class BrowserContext { } public static Task get(UUID browserUUID, String cookie, IRequestCatcher requestCatcher) { - if(sessions.containsKey(browserUUID)) + if(sessions.containsKey(browserUUID) && sessions.get(browserUUID).requestCatcher == requestCatcher) return t((res, rej) -> res.call(sessions.get(browserUUID))); return create(cookie, requestCatcher); }