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
|
try
|
||||||
{
|
{
|
||||||
_stream.BeginWrite(data, 0, data.Length, WriteHandlerInternal, _stream);
|
_stream.Write(data, 0, data.Length);
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
Log.outException(ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void WriteHandlerInternal(IAsyncResult result)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
_stream.EndWrite(result);
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user