mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make network listener runnable cancellable
This commit is contained in:
parent
b9af49f120
commit
315ffe7677
6 changed files with 21 additions and 5 deletions
|
@ -2055,6 +2055,7 @@ impl ScriptThread {
|
|||
let listener = NetworkListener {
|
||||
context: context,
|
||||
script_chan: self.chan.clone(),
|
||||
wrapper: None,
|
||||
};
|
||||
ROUTER.add_route(action_receiver.to_opaque(), box move |message| {
|
||||
listener.notify_action(message.to().unwrap());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue