diff --git a/tests/tests/util/navigator.rs b/tests/tests/util/navigator.rs index 1c96c19d4..36fc73eba 100644 --- a/tests/tests/util/navigator.rs +++ b/tests/tests/util/navigator.rs @@ -6,7 +6,7 @@ use ruffle_core::backend::navigator::{ }; use ruffle_core::indexmap::IndexMap; use ruffle_core::loader::Error; -use ruffle_core::socket::{SocketAction, SocketHandle}; +use ruffle_core::socket::{ConnectionState, SocketAction, SocketHandle}; use std::path::{Path, PathBuf}; use std::sync::mpsc::{Receiver, Sender}; use std::time::Duration; @@ -112,7 +112,7 @@ impl NavigatorBackend for TestNavigatorBackend { log.avm_trace(&format!(" Host: {}; Port: {}", host, port)); } sender - .send(SocketAction::Connect(handle, false)) + .send(SocketAction::Connect(handle, ConnectionState::Failed)) .expect("working channel send"); } } diff --git a/web/src/navigator.rs b/web/src/navigator.rs index d4776adda..e27453a66 100644 --- a/web/src/navigator.rs +++ b/web/src/navigator.rs @@ -7,7 +7,7 @@ use ruffle_core::backend::navigator::{ use ruffle_core::config::NetworkingAccessMode; use ruffle_core::indexmap::IndexMap; use ruffle_core::loader::Error; -use ruffle_core::socket::{SocketAction, SocketHandle}; +use ruffle_core::socket::{ConnectionState, SocketAction, SocketHandle}; use std::sync::mpsc::{Receiver, Sender}; use std::sync::Arc; use std::time::Duration; @@ -370,7 +370,7 @@ impl NavigatorBackend for WebNavigatorBackend { ) { // FIXME: Add way to call out to JS code. sender - .send(SocketAction::Connect(handle, false)) + .send(SocketAction::Connect(handle, ConnectionState::Failed)) .expect("working channel send"); } }