web, tests: Update connect_socket stubs

This commit is contained in:
sleepycatcoding 2023-07-17 19:42:35 +03:00 committed by Nathan Adams
parent 4c6ce79210
commit 75672ae998
2 changed files with 4 additions and 4 deletions

View File

@ -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");
}
}

View File

@ -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");
}
}