From 2bf96a0e8378494814db13f3b1e01a6449fb4ff4 Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 7 Aug 2014 08:30:52 +0200 Subject: [PATCH] minor cleanup --- server_https.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server_https.hpp b/server_https.hpp index 4aebff5..f2a4efe 100644 --- a/server_https.hpp +++ b/server_https.hpp @@ -47,15 +47,15 @@ namespace SimpleWeb { } std::shared_ptr set_timeout_on_socket(std::shared_ptr socket, size_t seconds) { - std::shared_ptr timeout(new boost::asio::deadline_timer(m_io_service)); - timeout->expires_from_now(boost::posix_time::seconds(seconds)); - timeout->async_wait([socket](const boost::system::error_code& ec){ + std::shared_ptr timer(new boost::asio::deadline_timer(m_io_service)); + timer->expires_from_now(boost::posix_time::seconds(seconds)); + timer->async_wait([socket](const boost::system::error_code& ec){ if(!ec) { socket->lowest_layer().shutdown(boost::asio::ip::tcp::socket::shutdown_both); socket->lowest_layer().close(); } }); - return timeout; + return timer; } }; }