Ensure ChannelInfo mutex taken - #3930
Conversation
1fed382 to
75379ef
Compare
|
🤖 AI: Confirmed against the reported crash. Under AddressSanitizer the reproducer — repeated short-lived connections to a server started with One residual on the same field: - bool bIsIdentified;
+ std::atomic<bool> bIsIdentified; |
75379ef to
5ed0004
Compare
| void ResetInfo(); // reset does not emit a message | ||
| QString GetName(); | ||
| void SetChanInfo ( const CChannelCoreInfo& NChanInf ); | ||
| CChannelCoreInfo GetChanInfo(); |
There was a problem hiding this comment.
Just double checking here. This was changed from a CChannelCoreInfo& to CChannelCoreInfo so that instead of returning a reference to the original, it returns a copy that was obtained under mutex protection?
Short description of changes
Addresses a missing Mutex issue.
CHANGELOG: SKIP
Context: Fixes an issue?
Reported server crash bug.
Does this change need documentation? What needs to be documented and how?
No
Status of this Pull Request
Needs fix verified by reporter.
What is missing until this pull request can be merged?
Review and testing.
Checklist