You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@ -31,6 +31,8 @@ using System.Security.Cryptography;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Threading;
|
||||
|
||||
using Mono.Security.Interface;
|
||||
|
||||
namespace Mono.Security.Protocol.Tls
|
||||
{
|
||||
#if INSIDE_SYSTEM
|
||||
@ -631,15 +633,14 @@ namespace Mono.Security.Protocol.Tls
|
||||
// record and return are the records (may be more than one) we have
|
||||
private void InternalReadCallback(IAsyncResult result)
|
||||
{
|
||||
if (this.disposed)
|
||||
return;
|
||||
|
||||
object[] state = (object[])result.AsyncState;
|
||||
byte[] recbuf = (byte[])state[0];
|
||||
InternalAsyncResult internalResult = (InternalAsyncResult)state[1];
|
||||
|
||||
try
|
||||
{
|
||||
this.checkDisposed();
|
||||
|
||||
int n = innerStream.EndRead(result);
|
||||
if (n > 0)
|
||||
{
|
||||
@ -793,13 +794,11 @@ namespace Mono.Security.Protocol.Tls
|
||||
|
||||
private void InternalWriteCallback(IAsyncResult ar)
|
||||
{
|
||||
if (this.disposed)
|
||||
return;
|
||||
|
||||
InternalAsyncResult internalResult = (InternalAsyncResult)ar.AsyncState;
|
||||
|
||||
try
|
||||
{
|
||||
this.checkDisposed();
|
||||
this.innerStream.EndWrite(ar);
|
||||
internalResult.SetComplete();
|
||||
}
|
||||
|
Reference in New Issue
Block a user