diff options
author | eidheim <eidheim@gmail.com> | 2017-07-18 13:21:54 +0300 |
---|---|---|
committer | eidheim <eidheim@gmail.com> | 2017-07-18 13:21:54 +0300 |
commit | ce7f6246b8617b8d79b4efaa1d86b74e82dd1b65 (patch) | |
tree | 26403abf06ff193bd256af9a539d98bb034170a8 /server_wss.hpp | |
parent | 56111e0dbb1d47bd2edb4996fd47e1da2cfe0b4e (diff) |
Cleanup of Connection constructor
Diffstat (limited to 'server_wss.hpp')
-rw-r--r-- | server_wss.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server_wss.hpp b/server_wss.hpp index 974e106..c3abc60 100644 --- a/server_wss.hpp +++ b/server_wss.hpp @@ -51,7 +51,7 @@ namespace SimpleWeb { void accept() { //Create new socket for this connection (stored in Connection::socket) //Shared_ptr is used to pass temporary objects to the asynchronous functions - std::shared_ptr<Connection> connection(new Connection(new WSS(*io_service, context))); + std::shared_ptr<Connection> connection(new Connection(*io_service, context)); acceptor->async_accept(connection->socket->lowest_layer(), [this, connection](const error_code &ec) { //Immediately start accepting a new connection (if io_service hasn't been stopped) |