fix WebSocket.cs

This commit is contained in:
sta
2010-10-21 15:51:00 +09:00
parent 6b75c09ed2
commit cdfb5f0d0f
22 changed files with 3 additions and 22 deletions

View File

@@ -196,28 +196,9 @@ namespace WebSocketSharp
readyState = state;
if (wsStream != null && tcpClient.Connected)
{
try
{
wsStream.WriteByte(0xff);
wsStream.WriteByte(0x00);
}
catch (Exception e)
{
if (OnError != null)
{
OnError(this, e.Message);
}
#if DEBUG
Console.WriteLine("WS: Error @close: {0}", e.Message);
#endif
}
}
if (wsStream != null)
{
wsStream.Dispose();
wsStream.Close();
wsStream = null;
}

Binary file not shown.