mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 05:17:26 +02:00
basic_stream doesn't use try-catch with no-exceptions.
This commit is contained in:
committed by
Klemens Morgenstern
parent
7453ce3260
commit
e88185f765
@ -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