[Modify] Polish it

This commit is contained in:
sta 2017-01-23 16:27:04 +09:00
parent 59346f550f
commit 079cd4db39

View File

@ -842,9 +842,11 @@ namespace WebSocketSharp.Server
private void startReceiving ()
{
if (_reuseAddress)
if (_reuseAddress) {
_listener.Server.SetSocketOption (
SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true
);
}
_listener.Start ();
_receiveThread = new Thread (new ThreadStart (receiveRequest));