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

user_profiles
teravus 2013-02-14 18:43:53 -05:00
parent 13d4f6f747
commit c22276a169
1 changed files with 2 additions and 0 deletions

View File

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