Fix some spellings.
This commit is contained in:
@@ -48,7 +48,7 @@ namespace OpenRA.Server
|
||||
{
|
||||
try
|
||||
{
|
||||
// NOTE(jsd): Poll the socket first to see if there's anything there.
|
||||
// Poll the socket first to see if there's anything there.
|
||||
// This avoids the exception with SocketErrorCode == `SocketError.WouldBlock` thrown
|
||||
// from `socket.Receive(rx)`.
|
||||
if (!Socket.Poll(0, SelectMode.SelectRead)) break;
|
||||
@@ -64,7 +64,7 @@ namespace OpenRA.Server
|
||||
}
|
||||
catch (SocketException e)
|
||||
{
|
||||
// NOTE(jsd): This should no longer be needed with the socket.Poll call above.
|
||||
// This should no longer be needed with the socket.Poll call above.
|
||||
if (e.SocketErrorCode == SocketError.WouldBlock) break;
|
||||
|
||||
server.DropClient(this);
|
||||
|
||||
@@ -242,7 +242,7 @@ namespace OpenRA.Server
|
||||
catch (Exception e)
|
||||
{
|
||||
/* TODO: Could have an exception here when listener 'goes away' when calling AcceptConnection! */
|
||||
/* Alternative would be to use locking but the listener doesnt go away without a reason. */
|
||||
/* Alternative would be to use locking but the listener doesn't go away without a reason. */
|
||||
Log.Write("server", "Accepting the connection failed.", e);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user