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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index e115d086956..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>>) {