-
-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent socket response continuation being called multiple times (#3338…
…) (#4616) * Prevent socket response continuation being called multiple times (3338) Coroutines continuations can only be invoke once, see CancellableContinuation. Use atomic boolean to ensure the continuation is called only once in a thread safe way. * Update import ordering * Add warning log message to coroutines continuation Log a warning message so that it's more visible if a websocket response is invoked multiple times * Set initial continuation invocation to false The default value must be false as the continuation property is mutable. The value is always assigned after the object is created.
- Loading branch information
1 parent
8270b18
commit 4838dc7
Showing
2 changed files
with
14 additions
and
3 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