fix WebSocket.cs
This commit is contained in:
@@ -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>
|
||||
|
@@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user