[Modify] Replace it

This commit is contained in:
sta 2016-02-25 15:11:18 +09:00
parent fcb4b6604e
commit c2961bc8e7

View File

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