Fixed rigctl server

This commit is contained in:
AlexandreRouma
2022-01-22 16:36:48 +01:00
parent 983c4c0f87
commit 0dc2f5f7c9
3 changed files with 11 additions and 7 deletions

View File

@ -310,7 +310,7 @@ private:
//spdlog::info("New client!");
_this->client = std::move(_client);
_this->client->readAsync(1024, _this->dataBuf, dataHandler, _this);
_this->client->readAsync(1024, _this->dataBuf, dataHandler, _this, false);
_this->client->waitForEnd();
_this->client->close();
@ -331,7 +331,7 @@ private:
if (_this->command.size() < MAX_COMMAND_LENGTH) { _this->command += (char)data[i]; }
}
_this->client->readAsync(1024, _this->dataBuf, dataHandler, _this);
_this->client->readAsync(1024, _this->dataBuf, dataHandler, _this, false);
}
void commandHandler(std::string cmd) {