Backed out changeset 259ad0fe9f08 (bug 1675207) for build bustages on WebSocketChannelChild.h. CLOSED TREE
This commit is contained in:
@@ -860,23 +860,6 @@ WebSocketImpl::OnServerClose(nsISupports* aContext, uint16_t aCode,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
WebSocketImpl::OnError() {
|
||||
if (!IsTargetThread()) {
|
||||
return Dispatch(
|
||||
NS_NewRunnableFunction("dom::FailConnectionRunnable",
|
||||
[self = RefPtr{this}]() {
|
||||
self->FailConnection(
|
||||
nsIWebSocketChannel::CLOSE_ABNORMAL);
|
||||
}),
|
||||
NS_DISPATCH_NORMAL);
|
||||
}
|
||||
|
||||
AssertIsOnTargetThread();
|
||||
FailConnection(nsIWebSocketChannel::CLOSE_ABNORMAL);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// WebSocketImpl::nsIInterfaceRequestor
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user