Commit 09cd379b authored by knowledge4igor's avatar knowledge4igor

Use make_shared instead of reset method

parent 447cedbe
...@@ -201,7 +201,7 @@ Listener::bind(const Address& address) { ...@@ -201,7 +201,7 @@ Listener::bind(const Address& address) {
listen_fd = fd; listen_fd = fd;
g_listen_fd = fd; g_listen_fd = fd;
transport_.reset(new Transport(handler_)); transport_ = std::make_shared<Transport>(handler_);
reactor_.init(Aio::AsyncContext(workers_)); reactor_.init(Aio::AsyncContext(workers_));
transportKey = reactor_.addHandler(transport_); transportKey = reactor_.addHandler(transport_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment