summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorVincent Costel <vincent.costel@apcurium.com>2016-07-18 20:09:20 -0400
committerJason Smith <jason.smith@xamarin.com>2016-07-18 17:09:20 -0700
commit28d9e8aabc361efccc19d66d8361559d19f32698 (patch)
tree9ceb945235af6a903f2ff70de15f787fccef9076 /Xamarin.Forms.Core
parent378ecc2a1a4ab95a7a9be17c9d907338894307da (diff)
downloadxamarin-forms-28d9e8aabc361efccc19d66d8361559d19f32698.tar.gz
xamarin-forms-28d9e8aabc361efccc19d66d8361559d19f32698.tar.bz2
xamarin-forms-28d9e8aabc361efccc19d66d8361559d19f32698.zip
Add workaround for bugzilla 37792 (#181)
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/Image.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/Image.cs b/Xamarin.Forms.Core/Image.cs
index 7d6299ac..4292f952 100644
--- a/Xamarin.Forms.Core/Image.cs
+++ b/Xamarin.Forms.Core/Image.cs
@@ -140,7 +140,14 @@ namespace Xamarin.Forms
return;
oldvalue.SourceChanged -= OnSourceChanged;
- await oldvalue.Cancel();
+ try
+ {
+ await oldvalue.Cancel();
+ }
+ catch(ObjectDisposedException)
+ {
+ // Workaround bugzilla 37792 https://bugzilla.xamarin.com/show_bug.cgi?id=37792
+ }
}
void IImageController.SetIsLoading(bool isLoading)