forked from boostorg/beast
Squelch harmless not_connected errors
This commit is contained in:
1 parent
5613ce7e97
commit
f4c65a5ba6
8 files changed
+22
-12
No files matched your search
@@ -560,7 +560,11 @@ private:
|
||||
{
|
||||
error_code ec;
|
||||
stream().shutdown(socket_type::shutdown_both, ec);
|
||||
if(ec)
|
||||
|
||||
// not_connected happens under normal
|
||||
// circumstances so don't bother reporting it.
|
||||
//
|
||||
if(ec && ec != beast::errc::not_connected)
|
||||
return this->fail("shutdown", ec);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user