Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Fix: avoid passing empty data to read_from_socked_resp #64

Merged
merged 1 commit into from
May 2, 2024

Conversation

JosuGZ
Copy link
Contributor

@JosuGZ JosuGZ commented Apr 29, 2024

When reading data from the daemon, all the buffer is passed to read_from_socked_resp. This aparently works with bincode as long as there is a valid packet, but when the length of the data is 0, it deserializes the wrong thing, causing confusion.

@JosuGZ JosuGZ force-pushed the fix-reading-responses branch from 725720f to c9b8da4 Compare May 1, 2024 21:07
@phush0 phush0 merged commit 4127b88 into Razer-Linux:main May 2, 2024
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants