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

@ -1,8 +1,8 @@
<Properties>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug_Ubuntu" ctype="Workspace" />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Release_Ubuntu" ctype="Workspace" />
<MonoDevelop.Ide.Workbench ActiveDocument="websocket-sharp/WebSocket.cs" ctype="Workbench">
<Files>
<File FileName="websocket-sharp/WebSocket.cs" Line="100" Column="1" />
<File FileName="websocket-sharp/WebSocket.cs" Line="204" Column="1" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>

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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.