Core/Networking: Fixed Exception from sslstream trying to write while another write was in progress.
Closes #1
This commit is contained in:
@@ -106,19 +106,7 @@ namespace Framework.Networking
|
||||
|
||||
try
|
||||
{
|
||||
_stream.BeginWrite(data, 0, data.Length, WriteHandlerInternal, _stream);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.outException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
void WriteHandlerInternal(IAsyncResult result)
|
||||
{
|
||||
try
|
||||
{
|
||||
_stream.EndWrite(result);
|
||||
_stream.Write(data, 0, data.Length);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user