diff options
Diffstat (limited to 'icnet/http/icnet_http_server_publisher.cc')
-rw-r--r-- | icnet/http/icnet_http_server_publisher.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/icnet/http/icnet_http_server_publisher.cc b/icnet/http/icnet_http_server_publisher.cc index e42154b2..82c90051 100644 --- a/icnet/http/icnet_http_server_publisher.cc +++ b/icnet/http/icnet_http_server_publisher.cc @@ -39,9 +39,7 @@ HTTPServerPublisher& HTTPServerPublisher::attachPublisher() { HTTPServerPublisher &HTTPServerPublisher::setTimeout(uint32_t timeout) { std::shared_ptr<transport::Portal> portal; producer_->getSocketOption(transport::GeneralTransportOptions::PORTAL, portal); - timer_ = std::unique_ptr<boost::asio::deadline_timer>(new boost::asio::deadline_timer(portal->getIoService(), - boost::posix_time::seconds( - timeout))); + timer_ = std::unique_ptr<boost::asio::deadline_timer>(new boost::asio::deadline_timer(portal->getIoService(), boost::posix_time::seconds(timeout))); wait_callback_ = [this](const boost::system::error_code e) { if (!e) { |