[Modify] Replace it

This commit is contained in:
sta 2016-03-01 15:04:20 +09:00
parent da4fbb686f
commit 3a369c22d8

View File

@ -2113,8 +2113,8 @@ namespace WebSocketSharp
/// </remarks> /// </remarks>
public void AcceptAsync () public void AcceptAsync ()
{ {
var msg = checkIfAvailable (false, true, true, false, false, false); string msg;
if (msg != null) { if (!checkIfAvailable (false, true, true, false, false, false, out msg)) {
_logger.Error (msg); _logger.Error (msg);
error ("An error has occurred in accepting.", null); error ("An error has occurred in accepting.", null);