Skip to content

Commit

Permalink
Set running flag to true before installing plugins (drogonframework#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
an-tao authored May 12, 2021
1 parent e478b63 commit 74b3ca3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/src/HttpAppFrameworkImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -560,9 +561,6 @@ void HttpAppFrameworkImpl::run()
// TODO: new plugin
});
}

// now start runing!!
running_ = true;
httpCtrlsRouterPtr_->init(ioLoops);
httpSimpleCtrlsRouterPtr_->init(ioLoops);
staticFileRouterPtr_->init(ioLoops);
Expand Down

0 comments on commit 74b3ca3

Please sign in to comment.