[Modify] Replace it

This commit is contained in:
sta 2016-02-25 15:15:20 +09:00
parent c2961bc8e7
commit 522450a6e2

View File

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