Skip to content

Commit 259da45

Browse files
committed
Improve queue handling in JSONRPCConnection
This started off by guarding `state` against concurrent access and then escalated slightly. The main changes are: - `state` must only be accessed on `queue` now, preventing race conditions of message handling while the connection is being closed. - A few functions were renamed, merged, and documented to simplify the code - A few dead members were removed
1 parent 3007d9f commit 259da45

File tree

2 files changed

+131
-150
lines changed

2 files changed

+131
-150
lines changed

0 commit comments

Comments
 (0)