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

Fix #150: latch closed to avoid logging after close() #154

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

kegsay
Copy link
Member

@kegsay kegsay commented Nov 27, 2024

We previously trusted the rust layer to not invoke callbacks after calling Close(). In practice, this gets violated when there is a sliding sync response at the same time as Close() is called. Fix this by remembering when we called Close() and refusing to log to stdout afterwards. Note we still log to file.

We previously trusted the rust layer to not invoke callbacks
after calling `Close()`. In practice, this gets violated when
there is a sliding sync response at the same time as `Close()`
is called. Fix this by remembering when we called `Close()`
and refusing to log to stdout afterwards. Note we still log
to file.
@kegsay kegsay merged commit 7de7fa1 into main Nov 27, 2024
4 checks passed
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