forked from boostorg/beast
basic_stream doesn't use try-catch with no-exceptions.
This commit is contained in:
1 parent
7453ce3260
commit
e88185f765
1 file changed
+4
@@ -149,6 +149,7 @@ close() noexcept
|
||||
error_code ec;
|
||||
socket.close(ec);
|
||||
}
|
||||
#if !defined(BOOST_NO_EXCEPTIONS)
|
||||
try
|
||||
{
|
||||
timer.cancel();
|
||||
@@ -156,6 +157,9 @@ close() noexcept
|
||||
catch(...)
|
||||
{
|
||||
}
|
||||
#else
|
||||
timer.cancel();
|
||||
#endif
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user