You've already forked linux-packaging-mono
Imported Upstream version 5.16.0.127
Former-commit-id: 1babec92ec0b34d7fed163047451926d29f91441
This commit is contained in:
parent
07b4df130c
commit
29319da080
@ -405,6 +405,7 @@ namespace System.Net
|
||||
void CloseSocket ()
|
||||
{
|
||||
lock (this) {
|
||||
Debug ($"WC CLOSE SOCKET: Cnc={ID} NS={networkStream} TLS={monoTlsStream}");
|
||||
if (networkStream != null) {
|
||||
try {
|
||||
networkStream.Dispose ();
|
||||
@ -412,6 +413,13 @@ namespace System.Net
|
||||
networkStream = null;
|
||||
}
|
||||
|
||||
if (monoTlsStream != null) {
|
||||
try {
|
||||
monoTlsStream.Dispose ();
|
||||
} catch { }
|
||||
monoTlsStream = null;
|
||||
}
|
||||
|
||||
if (socket != null) {
|
||||
try {
|
||||
socket.Dispose ();
|
||||
|
Reference in New Issue
Block a user