Squelch harmless not_connected errors

This commit is contained in:
Vinnie Falco
2017-07-20 08:15:27 -07:00
parent 5613ce7e97
commit f4c65a5ba6
8 changed files with 22 additions and 12 deletions
+4 -4
View File
@@ -198,7 +198,7 @@ private:
{
// Give the derived class a chance to do stuff
impl().do_shutdown(ec);
if(ec)
if(ec && ec != beast::errc::not_connected)
return fail("shutdown", ec);
return;
}
@@ -229,7 +229,7 @@ private:
{
// Give the derived class a chance to do stuff
impl().do_shutdown(ec);
if(ec)
if(ec && ec != beast::errc::not_connected)
return fail("shutdown", ec);
return;
}
@@ -273,7 +273,7 @@ private:
{
// Give the derived class a chance to do stuff
impl().do_shutdown(ec);
if(ec)
if(ec && ec != beast::errc::not_connected)
return fail("shutdown", ec);
return;
}
@@ -293,7 +293,7 @@ private:
if(ec == beast::http::error::end_of_stream)
{
// Give the derived class a chance to do stuff
impl().do_shutdown(ec);
if(ec && ec != beast::errc::not_connected)
if(ec)
return fail("shutdown", ec);
return;