[v3-update-sio] fixes nested switch brackets - best practice would be to replace these with functions in the future

Signed-off-by: Chris Hannon <himynameschris@gmail.com>
This commit is contained in:
Chris Hannon 2015-06-02 20:14:34 -04:00
parent 6bcf325630
commit fe6275adf5
1 changed files with 8 additions and 7 deletions

View File

@ -884,7 +884,7 @@ void SIOClientImpl::onMessage(WebSocket* ws, const WebSocket::Data& data)
}
break;
case 4:
{
const char second = payload.at(0);
int control2 = atoi(&second);
CCLOGINFO("Message code: [%i]", control);
@ -965,12 +965,13 @@ void SIOClientImpl::onMessage(WebSocket* ws, const WebSocket::Data& data)
}
}
break;
case 5:
CCLOGINFO("Upgrade required");
break;
case 6:
CCLOGINFO("Noop\n");
break;
case 5:
CCLOGINFO("Upgrade required");
break;
case 6:
CCLOGINFO("Noop\n");
break;
}
}
break;
}