aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 8a7fc82f52e..e116ace1be4 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -190,7 +190,7 @@ pub struct CancellableRunnable<T: Runnable + Send> {
impl<T: Runnable + Send> Runnable for CancellableRunnable<T> {
fn is_cancelled(&self) -> bool {
- self.cancelled.load(Ordering::Relaxed)
+ self.cancelled.load(Ordering::SeqCst)
}
fn handler(self: Box<CancellableRunnable<T>>) {
@@ -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());