summaryrefslogtreecommitdiff
path: root/netwerk/protocol/websocket/WebSocketChannel.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-04-26 10:26:22 +0000
committerMoonchild <moonchild@palemoon.org>2021-04-26 10:26:22 +0000
commit4e31a42b283f18167bad91309176d6edb00d7d2a (patch)
treec899c686baa5b99354bd82b311d576a5ee9f93c2 /netwerk/protocol/websocket/WebSocketChannel.h
parent5e705bd5059da5b7a39e3a096b7c7f59cb466730 (diff)
downloaduxp-4e31a42b283f18167bad91309176d6edb00d7d2a.tar.gz
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.
Diffstat (limited to 'netwerk/protocol/websocket/WebSocketChannel.h')
-rw-r--r--netwerk/protocol/websocket/WebSocketChannel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/netwerk/protocol/websocket/WebSocketChannel.h b/netwerk/protocol/websocket/WebSocketChannel.h
index 631edebfaf..f60bc4fbbe 100644
--- a/netwerk/protocol/websocket/WebSocketChannel.h
+++ b/netwerk/protocol/websocket/WebSocketChannel.h
@@ -146,6 +146,7 @@ private:
void GeneratePong(uint8_t *payload, uint32_t len);
void GeneratePing();
+ nsresult OnNetworkChangedTargetThread();
nsresult OnNetworkChanged();
nsresult StartPinging();