Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding lock around session reset to prevent ending session prematurely #25

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

MichaelGHSeg
Copy link
Contributor

No description provided.

@MichaelGHSeg MichaelGHSeg requested a review from wenxi-zeng July 19, 2024 14:10

endSession()
startNewSession()
sessionUpdateLock.withLock {
Copy link
Contributor

Choose a reason for hiding this comment

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

since this forces synchronization on a single method, we can probably do it in the old java way? add a synchronized modifier to the method (see this). not sure if it's better though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Kotlin considers it deprecated.

@MichaelGHSeg MichaelGHSeg merged commit 372a287 into main Jul 19, 2024
2 checks passed
@MichaelGHSeg MichaelGHSeg deleted the MichaelGHSeg/locksessionreset branch July 19, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants