[Modify] Replace it

master
sta 10 years ago
parent a844baaa5c
commit da4fbb686f

@ -2088,8 +2088,8 @@ namespace WebSocketSharp
/// </remarks> /// </remarks>
public void Accept () public void Accept ()
{ {
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);

Loading…
Cancel
Save