mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 11:21:08 -10:00
[system] Don't throw ObjectDisposedException on cancelled async WebConnection. Fixes #31507
This commit is contained in:
1 parent
8be963e71b
commit
613c2a9182
1 file changed
+2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user