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); }