fix data leaking from one instance to the other when UUIDs match
This commit is contained in:
parent
c7d3e51ba8
commit
0799bd9aad
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ public class BrowserContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Task<BrowserContext> get(UUID browserUUID, String cookie, IRequestCatcher requestCatcher) {
|
public static Task<BrowserContext> 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 t((res, rej) -> res.call(sessions.get(browserUUID)));
|
||||||
return create(cookie, requestCatcher);
|
return create(cookie, requestCatcher);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue