mirror of
https://github.com/etlegacy/etlegacy-tools.git
synced 2024-11-24 21:11:17 +00:00
etlist: fixed incomplete packet saving
This commit is contained in:
parent
e819a543d1
commit
ae5b795524
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ void Connection::HandleReceive(const boost::system::error_code& error,
|
|||
boost::asio::placeholders::bytes_transferred));
|
||||
|
||||
// std::cout.write(data_, bytes_recvd) << std::endl;
|
||||
response_.push_back(data_);
|
||||
response_.push_back(std::string(data_, bytes_recvd));
|
||||
}
|
||||
#if 0
|
||||
else if (error)
|
||||
|
@ -99,4 +99,4 @@ void Connection::HandleSend()
|
|||
boost::bind(&Connection::HandleReceive, this,
|
||||
boost::asio::placeholders::error,
|
||||
boost::asio::placeholders::bytes_transferred));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue