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

Only resume once for websocket message responses #3023

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

jpelgrom
Copy link
Member

Summary

Fix #3018 by checking if the continuation can be resumed before trying to resume it. If it was already resumed, the app isn't waiting for another message so discarding it should be OK.

Screenshots

n/a

Link to pull request in Documentation repository

n/a

Any other notes

 - Don't try to resume on a websocket response coroutine if it was already resumed.
Copy link
Member

@dshokouhi dshokouhi left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for the quick fix :)

@JBassett JBassett merged commit 9eac506 into home-assistant:master Nov 3, 2022
@jpelgrom jpelgrom deleted the fix-3018 branch November 3, 2022 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recent Crash: Illegal State exception: Already resumed, but proposed with update SocketResponse
4 participants