-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix suboptimal lock release in
(*handler).getChainInfo
. (#733)
Also remove direct access to h.chainInfo. No race condition currently possible because `h.chainInfo` is never set to `nil` but, if it were, `getChainInfo` could sometimes unnecessarily return `nil`. Possible source of bugs in the future.
- Loading branch information
1 parent
32e9b7e
commit 84eedb1
Showing
1 changed file
with
8 additions
and
6 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