diff --git a/spyserver_source/src/spyserver_client.cpp b/spyserver_source/src/spyserver_client.cpp index 452ad3c5..d8ee0736 100644 --- a/spyserver_source/src/spyserver_client.cpp +++ b/spyserver_source/src/spyserver_client.cpp @@ -93,8 +93,7 @@ namespace spyserver { SpyServerClientClass* _this = (SpyServerClientClass*)ctx; if (count < sizeof(SpyServerMessageHeader)) { - printf("ERROR: Incomplete message header\n"); - return; + _this->readSize(sizeof(SpyServerMessageHeader)-count, &buf[count]); } int size = _this->readSize(_this->receivedHeader.BodySize, _this->readBuf);