IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 83ad6930 authored by ralfulrich's avatar ralfulrich
Browse files

fix introduced bug in OutputManger

parent 3d6aa91d
No related branches found
No related tags found
1 merge request!371Additional outputs ported to new architecture
......@@ -47,7 +47,7 @@ namespace corsika {
template <typename TOutput>
inline void OutputManager::add(std::string const& name, TOutput& output) {
if (state_ == OutputState::NoInit) {
if (state_ != OutputState::NoInit) {
// if "add" is called after the ouptput has started, this is an ERROR.
CORSIKA_LOGGER_ERROR(
logger_, "Cannot add more outputs to OutputManager after output was started.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment