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>2019-04-10 14:05:15 +0300
committereidheim <eidheim@gmail.com>2019-04-10 14:05:15 +0300
commitb3556512ff09e908f17161ed62316412840f3c30 (patch)
treef7562a23936fc6e24e467f7786dd20b798e79bc0 /client_wss.hpp
parentb3afadd73033f3aa791eb2f8984df72d0b96e44c (diff)
Added missing error_code on set_option
Diffstat (limited to 'client_wss.hpp')
-rw-r--r--client_wss.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/client_wss.hpp b/client_wss.hpp
index f1e7fd3..2a667be 100644
--- a/client_wss.hpp
+++ b/client_wss.hpp
@@ -70,7 +70,8 @@ namespace SimpleWeb {
return;
if(!ec) {
asio::ip::tcp::no_delay option(true);
- connection->socket->lowest_layer().set_option(option);
+ error_code ec;
+ connection->socket->lowest_layer().set_option(option, ec);
if(!this->config.proxy_server.empty()) {
auto write_buffer = std::make_shared<asio::streambuf>();