Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreidheim <eidheim@gmail.com>2020-08-26 12:45:30 +0300
committereidheim <eidheim@gmail.com>2020-08-26 12:45:30 +0300
commita7b227bdbed7ec2e74565772d63e61ae11106d56 (patch)
treeb56ae4ee7574e91c31f9923a6aca19507014c769 /client_ws.hpp
parent84ebe12828cfe2508dce0c523fab3c867741e602 (diff)
Fixed compilation issues for older (boost.)asio versions
Diffstat (limited to 'client_ws.hpp')
-rw-r--r--client_ws.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client_ws.hpp b/client_ws.hpp
index 3448c3a..72d8d9e 100644
--- a/client_ws.hpp
+++ b/client_ws.hpp
@@ -106,7 +106,7 @@ namespace SimpleWeb {
return;
}
- timer = std::unique_ptr<asio::steady_timer>(new asio::steady_timer(make_steady_timer(*socket, std::chrono::seconds(seconds))));
+ timer = make_steady_timer(*socket, std::chrono::seconds(seconds));
std::weak_ptr<Connection> connection_weak(this->shared_from_this()); // To avoid keeping Connection instance alive longer than needed
timer->async_wait([connection_weak, use_timeout_idle](const error_code &ec) {
if(!ec) {