Avoid incorrect warning message in case of a disconnect.

This commit is contained in:
hiker 2015-12-16 07:59:10 +11:00
parent 07baf05b90
commit 6280613e5c

View File

@ -93,6 +93,9 @@ void ControllerEventsProtocol::setup()
bool ControllerEventsProtocol::notifyEventAsynchronous(Event* event)
{
if (event->getType() != EVENT_TYPE_MESSAGE)
return true;
const NetworkString &data = event->data();
if (data.size() < 17)
{