mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1129791 - Check connection state rather than context state. r=ekr
--HG-- extra : transplant_source : %E5RDV%AF%3B%9D%7C%0F%10%9BF3%BB%29%06%8C%92%CF1
This commit is contained in:
parent
aca4ffd662
commit
2378453943
@ -668,10 +668,10 @@ abort:
|
||||
|
||||
nsresult NrIceCtx::StartGathering() {
|
||||
ASSERT_ON_THREAD(sts_target_);
|
||||
MOZ_ASSERT(ctx_->state == ICE_CTX_INIT);
|
||||
if (ctx_->state != ICE_CTX_INIT) {
|
||||
MOZ_ASSERT(connection_state_ == ICE_CTX_INIT);
|
||||
if (connection_state_ != ICE_CTX_INIT) {
|
||||
MOZ_MTLOG(ML_ERROR, "ICE ctx in the wrong state for gathering: '"
|
||||
<< name_ << "'");
|
||||
<< name_ << "' state: " << connection_state_);
|
||||
SetConnectionState(ICE_CTX_FAILED);
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
@ -833,4 +833,3 @@ void nr_ice_compute_codeword(char *buf, int len,char *codeword) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user