diff --git a/modules/beast_asio/protocol/beast_HandshakeDetectorType.h b/modules/beast_asio/protocol/beast_HandshakeDetectorType.h index 037a720a74..5d5a3f4293 100644 --- a/modules/beast_asio/protocol/beast_HandshakeDetectorType.h +++ b/modules/beast_asio/protocol/beast_HandshakeDetectorType.h @@ -145,7 +145,7 @@ protected: //static_bassert (std::is_integral ::value); IntegerType networkValue; if (! read (&networkValue)) - return; + return false; *value = fromNetworkByteOrder (networkValue); return true; }