-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client):
disconnect_reason/read_error
is cancel-safe (#1347)
* client: `disconnect_reason/read_error` cancel-safe If/when the connection is closed, the cause is fetched by `read_error` from the background task. It was not cancel-safe, which could have side-effects and mutate the state, such as the internal Option could be `None` and cause a panic. * fix wasm build * remove async_lock dependency
- Loading branch information
Showing
2 changed files
with
29 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters