mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 06:15:24 +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;
|
error_code ec;
|
||||||
socket.close(ec);
|
socket.close(ec);
|
||||||
}
|
}
|
||||||
|
#if !defined(BOOST_NO_EXCEPTIONS)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
timer.cancel();
|
timer.cancel();
|
||||||
@@ -156,6 +157,9 @@ close() noexcept
|
|||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
timer.cancel();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user