Issue #1767 - Prevent incorrect calling of network change detection function.

This rewrites the websocket channel network change detection function to not
skip part of its logic in a situation that has already been checked, preventing
a thread race. See analysis of the problem in the issue.
This commit is contained in:
Moonchild 2021-04-26 10:26:22 +00:00 • committed by roytam1
commit 434b3269fb
2 changed files with 16 additions and 13 deletions

View file

@ -146,6 +146,7 @@ private:
void GeneratePong(uint8_t *payload, uint32_t len);
void GeneratePing();
nsresult OnNetworkChangedTargetThread();
nsresult OnNetworkChanged();
nsresult StartPinging();