refactor
This commit is contained in:
@@ -131,7 +131,7 @@ auto packet_server::handshake(std::shared_ptr<connection> conn) const -> bool {
|
||||
conn->socket,
|
||||
boost::asio::buffer(&conn->buffer[total_read],
|
||||
conn->buffer.size() - total_read));
|
||||
if (bytes_read <= 0) {
|
||||
if (bytes_read == 0) {
|
||||
throw std::runtime_error("0 bytes read");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user