mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Properly implement TaskSource for NetworkingTaskSource
This commit is contained in:
parent
d99d26cf1f
commit
72cb856e31
15 changed files with 89 additions and 69 deletions
|
@ -132,8 +132,8 @@ impl EventSource {
|
|||
let context = EventSourceContext;
|
||||
let listener = NetworkListener {
|
||||
context: Arc::new(Mutex::new(context)),
|
||||
script_chan: global.script_chan(),
|
||||
wrapper: None
|
||||
task_source: global.networking_task_source(),
|
||||
wrapper: Some(global.get_runnable_wrapper())
|
||||
};
|
||||
let (action_sender, action_receiver) = ipc::channel().unwrap();
|
||||
ROUTER.add_route(action_receiver.to_opaque(), box move |message| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue