Refactored Ext.cs
This commit is contained in:
@@ -410,7 +410,7 @@ namespace WebSocketSharp.Server
|
||||
}
|
||||
|
||||
_services.Stop (
|
||||
((ushort) CloseStatusCode.ServerError).ToByteArrayInternally (ByteOrder.Big), true);
|
||||
((ushort) CloseStatusCode.ServerError).InternalToByteArray (ByteOrder.Big), true);
|
||||
|
||||
_listener.Abort ();
|
||||
_state = ServerState.Stop;
|
||||
|
@@ -466,7 +466,7 @@ namespace WebSocketSharp.Server
|
||||
|
||||
_listener.Stop ();
|
||||
_services.Stop (
|
||||
((ushort) CloseStatusCode.ServerError).ToByteArrayInternally (ByteOrder.Big), true);
|
||||
((ushort) CloseStatusCode.ServerError).InternalToByteArray (ByteOrder.Big), true);
|
||||
|
||||
_state = ServerState.Stop;
|
||||
}
|
||||
|
@@ -295,7 +295,7 @@ namespace WebSocketSharp.Server
|
||||
|
||||
if (host.Sessions.State == ServerState.Start)
|
||||
host.Sessions.Stop (
|
||||
((ushort) CloseStatusCode.Away).ToByteArrayInternally (ByteOrder.Big), true);
|
||||
((ushort) CloseStatusCode.Away).InternalToByteArray (ByteOrder.Big), true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user