* gracefully handle a Situation where a double close is called on the WebSocket handler

This commit is contained in:
teravus
2013-02-14 18:43:53 -05:00
parent 13d4f6f747
commit c22276a169

View File

@@ -535,6 +535,8 @@ namespace OpenSim.Framework.Servers.HttpServer
/// <param name="message"></param>
public void Close(string message)
{
if (_networkContext == null)
return;
if (_networkContext.Stream != null)
{
if (_networkContext.Stream.CanWrite)