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 .ToObject<T> throwing due to writer cache #32

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

VelvetToroyashi
Copy link
Contributor

See commit details - this bug was brought to my attention when attempting to monkey-patch Remora/Remora.Discord#338

Flushes the writer, which forces it to commit to the backing store - in the case of small JSON payloads, this causes an edge-case bug wherein the writer hasn't written anything, and thus this method will attempt to deserialize nothing, which throws an exception.
@Nihlus Nihlus merged commit 75844c3 into Remora:main Sep 4, 2024
3 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