aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-05-25 16:33:43 -0500
committerbors-servo <metajack+bors@gmail.com>2015-05-25 16:33:43 -0500
commit6595ebed0f50658b8f6d12f9c37017df5ea26efa (patch)
treef56d2010594a59ce8d3b86c27e7cac7fcd0c2878
parent34a617aaa133b0bc0756dd7d904203c9d633e69a (diff)
parent4e327d694173322aaf07a5a2315e1e24939911b3 (diff)
downloadservo-6595ebed0f50658b8f6d12f9c37017df5ea26efa.tar.gz
servo-6595ebed0f50658b8f6d12f9c37017df5ea26efa.zip
Auto merge of #6162 - r0e:testing, r=jdm
Fixes issue #6148 @jdm After mulling over this for a little while, i'm not sure if this approach is correct. Any comments? <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6162) <!-- Reviewable:end -->
-rw-r--r--components/net_traits/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/net_traits/lib.rs b/components/net_traits/lib.rs
index d2ecae532be..afbb6d0b5c8 100644
--- a/components/net_traits/lib.rs
+++ b/components/net_traits/lib.rs
@@ -26,6 +26,7 @@ use msg::constellation_msg::{PipelineId};
use url::Url;
use std::sync::mpsc::{channel, Receiver, Sender};
+use std::thread;
pub mod image_cache_task;
pub mod storage_task;
@@ -147,7 +148,9 @@ impl PendingLoadGuard {
impl Drop for PendingLoadGuard {
fn drop(&mut self) {
- assert!(self.loaded)
+ if !thread::panicking() {
+ assert!(self.loaded)
+ }
}
}