Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Fixes #3257 Fixes #3256 Make sure session listeners are set when first LoadRequest is called#3265

Merged
bluemarvin merged 1 commit intomasterfrom
v10/load_request_restore
Apr 28, 2020
Merged

Fixes #3257 Fixes #3256 Make sure session listeners are set when first LoadRequest is called#3265
bluemarvin merged 1 commit intomasterfrom
v10/load_request_restore

Conversation

@keianhzo
Copy link
Copy Markdown
Contributor

@keianhzo keianhzo commented Apr 28, 2020

Fixes #3257 Fixes #3256 We are setting the session listeners after activating the sessions. That means that in some cases (like restoring when activating the session) the listeners are not ready. This cause issues like permissions (or anything that we do in the session listeners) not being correctly checked for restored sessions.

@keianhzo keianhzo self-assigned this Apr 28, 2020
@keianhzo keianhzo requested a review from MortimerGoro April 28, 2020 10:55
@keianhzo keianhzo changed the title Fixes #3257 Make sure session listeners are set when LoadRequest is called Fixes #3257 Make sure session listeners are set when first LoadRequest is called Apr 28, 2020
@keianhzo keianhzo changed the title Fixes #3257 Make sure session listeners are set when first LoadRequest is called Fixes #3257 Fixes #3256 Make sure session listeners are set when first LoadRequest is called Apr 28, 2020
Copy link
Copy Markdown
Contributor

@MortimerGoro MortimerGoro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since setupListeners is always followed by a setSession I'd like a safer API to handle this instead of separate calls. What about adding an additional (probably optional) enum or bitflag to the SetSession call which indicates if we want to activate, deactivate or don't change active state of the session?

We can do it as a follow-up

@bluemarvin bluemarvin merged commit fe05ee7 into master Apr 28, 2020
@bluemarvin bluemarvin deleted the v10/load_request_restore branch April 28, 2020 20:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

3 participants