|
@@ -40,8 +40,8 @@ void con_handler::handle_read_version(const boost::system::error_code &err,
|
|
|
Json::Value root;
|
|
|
|
|
|
// parse data
|
|
|
- if (!this->jsonReader->parse(this->data, this->data + bytes_transferred, &root,
|
|
|
- &err)) {
|
|
|
+ if (!this->jsonReader->parse(this->data, this->data + bytes_transferred,
|
|
|
+ &root, &err)) {
|
|
|
std::cerr << "Json error: " << err << std::endl << "data: " << this->data;
|
|
|
sock.close();
|
|
|
}
|
|
@@ -83,8 +83,8 @@ void con_handler::handle_read_login(const boost::system::error_code &err,
|
|
|
Json::Value root;
|
|
|
|
|
|
// parse data
|
|
|
- if (!this->jsonReader->parse(this->data, this->data + bytes_transferred, &root,
|
|
|
- &err)) {
|
|
|
+ if (!this->jsonReader->parse(this->data, this->data + bytes_transferred,
|
|
|
+ &root, &err)) {
|
|
|
std::cerr << "Json error: " << err << std::endl << "data: " << this->data;
|
|
|
sock.close();
|
|
|
}
|
|
@@ -125,8 +125,8 @@ void con_handler::handle_read_command(const boost::system::error_code &err,
|
|
|
Json::Value root;
|
|
|
|
|
|
// parse data
|
|
|
- if (!this->jsonReader->parse(this->data, this->data + bytes_transferred, &root,
|
|
|
- &err)) {
|
|
|
+ if (!this->jsonReader->parse(this->data, this->data + bytes_transferred,
|
|
|
+ &root, &err)) {
|
|
|
std::cerr << "Json error: " << err << std::endl << "data: " << this->data;
|
|
|
sock.close();
|
|
|
}
|