Imported Upstream version 6.8.0.82

Former-commit-id: 7e63bf6e0646194a7ccc6e2356266bef05ce51bb
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-12-20 08:48:16 +00:00
parent 665300eaa7
commit f0b8def9a1
53 changed files with 57 additions and 54 deletions

View File

@ -64,6 +64,7 @@ namespace Mono.Net.Security
}
SslStream sslStream;
readonly object sslStreamLock = new object ();
internal SslStream SslStream {
get { return sslStream; }
@ -157,9 +158,11 @@ namespace Mono.Net.Security
}
void CloseSslStream () {
if (sslStream != null) {
sslStream.Dispose ();
sslStream = null;
lock (sslStreamLock) {
if (sslStream != null) {
sslStream.Dispose ();
sslStream = null;
}
}
}
}