diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-06-08 19:01:37 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-06-08 21:18:44 +0530 |
commit | 30827bab4d4dc96749540d5917522902b42ac340 (patch) | |
tree | 7e6de492f632ffbee70a7fe2ccd0d8f20f6c0ee6 /src/components/script/dom/xmlhttprequest.rs | |
parent | e8de5f2f55623404560c0a0cdf135126eb42c426 (diff) | |
download | servo-30827bab4d4dc96749540d5917522902b42ac340.tar.gz servo-30827bab4d4dc96749540d5917522902b42ac340.zip |
Make sync requests not crash / remove associated leak
Diffstat (limited to 'src/components/script/dom/xmlhttprequest.rs')
-rw-r--r-- | src/components/script/dom/xmlhttprequest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/xmlhttprequest.rs b/src/components/script/dom/xmlhttprequest.rs index a25584bb131..60af7c394b1 100644 --- a/src/components/script/dom/xmlhttprequest.rs +++ b/src/components/script/dom/xmlhttprequest.rs @@ -95,7 +95,7 @@ enum SyncOrAsync<'a, 'b> { impl<'a,'b> SyncOrAsync<'a,'b> { fn is_async(&self) -> bool { match *self { - Sync(_) => true, + Async(_,_) => true, _ => false } } |