mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-11-29 18:27:43 +08:00
Fix a bug in the getIOLoop method (#1014)
This commit is contained in:
parent
cdabca9de5
commit
94c7add7a1
@ -239,7 +239,11 @@ void ListenerManager::startListening()
|
||||
|
||||
trantor::EventLoop *ListenerManager::getIOLoop(size_t id) const
|
||||
{
|
||||
#ifdef __linux__
|
||||
auto const n = listeningloopThreads_.size();
|
||||
#else
|
||||
auto const n = ioLoopThreadPoolPtr_->size();
|
||||
#endif
|
||||
if (0 == n)
|
||||
{
|
||||
LOG_WARN << "Please call getIOLoop() after drogon::app().run()";
|
||||
|
2
trantor
2
trantor
@ -1 +1 @@
|
||||
Subproject commit 81983fa57d2a1d73cc2779261c064fe9f031ff2f
|
||||
Subproject commit 3b0745a09479d9a6d0870e878face070e3aec981
|
Loading…
Reference in New Issue
Block a user