web, tests: Update connect_socket stubs
This commit is contained in:
parent
4c6ce79210
commit
75672ae998
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue