Commit 734aee45 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[5094] Use error_code.value() to compare against boost::system_errors.

Comparing the error_code directly causes test issues on some OSes.
See asio_wrapper.h for the details.
parent cdc16d8c
......@@ -261,7 +261,7 @@ public:
/// @param ec Error code.
void acceptHandler(const boost::system::error_code& ec) {
if (ec) {
if (ec != boost::asio::error::operation_aborted) {
if (ec.value() != boost::asio::error::operation_aborted) {
ADD_FAILURE() << "error occurred while accepting connection: "
<< ec.message();
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment