Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(534)

Unified Diff: third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp

Issue 2273483003: [WONT COMMIT] WebSocket: Signal when worker thread lifecycle context is destroyed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp
diff --git a/third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp b/third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp
index 4bcf08becbb71b9600024e3f42871149fbc8fff9..fd53aef9a5988acd752118b16387f29928d74c19 100644
--- a/third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp
+++ b/third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp
@@ -365,10 +365,7 @@ void Peer::didError()
void Peer::contextDestroyed()
{
DCHECK(isMainThread());
- if (m_mainWebSocketChannel) {
- m_mainWebSocketChannel->disconnect();
- m_mainWebSocketChannel = nullptr;
- }
+ disconnect();
m_bridge = nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698