icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -220,17 +220,29 @@ WebTransportSessionProxy::CloseSession(uint32_t status,
|
|||
case WebTransportSessionProxyState::INIT:
|
||||
case WebTransportSessionProxyState::DONE:
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
case WebTransportSessionProxyState::NEGOTIATING:
|
||||
mChannel->Cancel(NS_ERROR_ABORT);
|
||||
case WebTransportSessionProxyState::NEGOTIATING: {
|
||||
nsCOMPtr<nsIChannel> channel = mChannel;
|
||||
mChannel = nullptr;
|
||||
ChangeState(WebTransportSessionProxyState::DONE);
|
||||
NS_DispatchToMainThread(NS_NewRunnableFunction(
|
||||
"WebTransportSessionProxy::CancelChannel",
|
||||
[channel = std::move(channel)]() {
|
||||
channel->Cancel(NS_ERROR_ABORT);
|
||||
}));
|
||||
break;
|
||||
case WebTransportSessionProxyState::NEGOTIATING_SUCCEEDED:
|
||||
mChannel->Cancel(NS_ERROR_ABORT);
|
||||
}
|
||||
case WebTransportSessionProxyState::NEGOTIATING_SUCCEEDED: {
|
||||
nsCOMPtr<nsIChannel> channel = mChannel;
|
||||
mChannel = nullptr;
|
||||
ChangeState(WebTransportSessionProxyState::SESSION_CLOSE_PENDING);
|
||||
NS_DispatchToMainThread(NS_NewRunnableFunction(
|
||||
"WebTransportSessionProxy::CancelChannel",
|
||||
[channel = std::move(channel)]() {
|
||||
channel->Cancel(NS_ERROR_ABORT);
|
||||
}));
|
||||
CloseSessionInternal();
|
||||
break;
|
||||
}
|
||||
case WebTransportSessionProxyState::ACTIVE:
|
||||
ChangeState(WebTransportSessionProxyState::SESSION_CLOSE_PENDING);
|
||||
CloseSessionInternal();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue