mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-03 12:18:11 +08:00
Set running flag to true before installing plugins (#849)
This commit is contained in:
parent
e478b63dda
commit
74b3ca3db6
@ -547,7 +547,8 @@ void HttpAppFrameworkImpl::run()
|
||||
sessionManagerPtr_ =
|
||||
std::make_unique<SessionManager>(getLoop(), sessionTimeout_);
|
||||
}
|
||||
|
||||
// now start runing!!
|
||||
running_ = true;
|
||||
// Initialize plugins
|
||||
const auto &pluginConfig = jsonConfig_["plugins"];
|
||||
if (!pluginConfig.isNull())
|
||||
@ -560,9 +561,6 @@ void HttpAppFrameworkImpl::run()
|
||||
// TODO: new plugin
|
||||
});
|
||||
}
|
||||
|
||||
// now start runing!!
|
||||
running_ = true;
|
||||
httpCtrlsRouterPtr_->init(ioLoops);
|
||||
httpSimpleCtrlsRouterPtr_->init(ioLoops);
|
||||
staticFileRouterPtr_->init(ioLoops);
|
||||
|
Loading…
Reference in New Issue
Block a user