projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8be963e
)
[system] Don't throw ObjectDisposedException on cancelled async WebConnection. Fixes...
author
Marek Safar
<marek.safar@gmail.com>
Wed, 1 Jul 2015 14:39:32 +0000
(16:39 +0200)
committer
Marek Safar
<marek.safar@gmail.com>
Wed, 1 Jul 2015 14:41:56 +0000
(16:41 +0200)
mcs/class/System/System.Net/WebConnection.cs
patch
|
blob
|
history
diff --git
a/mcs/class/System/System.Net/WebConnection.cs
b/mcs/class/System/System.Net/WebConnection.cs
index 52a88f7e2df45aff89a7cd1a20255e52c1a44ca8..fcee594ebcf50331e59976fa1645c32d1ca9c602 100644
(file)
--- a/
mcs/class/System/System.Net/WebConnection.cs
+++ b/
mcs/class/System/System.Net/WebConnection.cs
@@
-1067,6
+1067,8
@@
namespace System.Net
Stream s = null;
lock (this) {
+ if (status == WebExceptionStatus.RequestCanceled)
+ return true;
if (Data.request != request)
throw new ObjectDisposedException (typeof (NetworkStream).FullName);
if (nstream == null)