Commit d64e48f2 authored by knowledge4igor's avatar knowledge4igor

Delete obsolete field in Listener

parent 1df04a35
...@@ -85,7 +85,6 @@ private: ...@@ -85,7 +85,6 @@ private:
std::thread acceptThread; std::thread acceptThread;
size_t workers_; size_t workers_;
std::shared_ptr<Transport> transport_;
std::shared_ptr<Handler> handler_; std::shared_ptr<Handler> handler_;
Aio::Reactor reactor_; Aio::Reactor reactor_;
......
...@@ -216,10 +216,10 @@ Listener::bind(const Address& address) { ...@@ -216,10 +216,10 @@ Listener::bind(const Address& address) {
listen_fd = fd; listen_fd = fd;
g_listen_fd = fd; g_listen_fd = fd;
transport_ = std::make_shared<Transport>(handler_); auto transport = std::make_shared<Transport>(handler_);
reactor_.init(Aio::AsyncContext(workers_)); reactor_.init(Aio::AsyncContext(workers_));
transportKey = reactor_.addHandler(transport_); transportKey = reactor_.addHandler(transport);
} }
bool bool
......
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