Squelch harmless not_connected errors

This commit is contained in:
Vinnie Falco committed 2017-07-20 08:15:27 -07:00
1 parent 5613ce7e97
commit f4c65a5ba6
8 files changed
+22 -12

No files matched your search

+5 -1
View File
@@ -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);
}
};