Tidy up examples

This commit is contained in:
Vinnie Falco
2019-03-06 05:40:49 -08:00
parent e073a9e7fc
commit b51c4bb49a
13 changed files with 49 additions and 44 deletions

View File

@@ -785,10 +785,6 @@ private:
void
on_shutdown(beast::error_code ec)
{
// Happens when the shutdown times out
if(ec == net::error::operation_aborted)
return;
if(ec)
return fail(ec, "shutdown");
@@ -917,11 +913,10 @@ public:
void
run()
{
if(! acceptor_.is_open())
return;
do_accept();
}
private:
void
do_accept()
{

View File

@@ -588,11 +588,10 @@ public:
void
run()
{
if(! acceptor_.is_open())
return;
do_accept();
}
private:
void
do_accept()
{