fix: let ICE drive connection failure state

This commit is contained in:
dijunkun
2026-07-28 17:43:25 +08:00
parent 383452ed3b
commit efd8b7c0ff
6 changed files with 25 additions and 71 deletions
-4
View File
@@ -170,10 +170,6 @@ void PeerEventHandler::OnConnectionStatus(ConnectionStatus status,
runtime->is_client_mode_ = true;
runtime->show_connection_status_window_ = true;
props->connection_status_.store(status);
if (status != ConnectionStatus::Connecting &&
status != ConnectionStatus::Gathering) {
props->connection_attempt_active_.store(false);
}
switch (status) {
case ConnectionStatus::Connected: {