Make network listener runnable cancellable

This commit is contained in:
Connor Brewster 2016-07-05 14:45:09 -06:00
parent b9af49f120
commit 315ffe7677
6 changed files with 21 additions and 5 deletions

View file

@ -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());