Skip to content

Conversation

@ElFantasma
Copy link
Collaborator

When using spawn_listener the stream is being consumed retrieving one Result<I, E> each time.

When the Result is Ok(I) it gets processed, but if it is an Err(E) the listener currently is stopped, preventing it from processing more data. The Error may be caused by invalid data from the stream (causing a DecodingError), but we don't want to end the listener.

With this change, we just discard the invalid package and keep the listener alive for more items.

@ElFantasma ElFantasma merged commit da6d6b5 into main Sep 3, 2025
3 checks passed
@MegaRedHand MegaRedHand deleted the listener_fix branch September 3, 2025 15:58
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.

3 participants