diff --git a/core/Communication.cc b/core/Communication.cc index bf4c2ccbefe7e06e435531d35c956af483e1cf4f..a3851c4d32d5b257290b26b6d8901a118950ec18 100644 --- a/core/Communication.cc +++ b/core/Communication.cc @@ -1222,8 +1222,7 @@ boolean TTCN_Communication::send_log(time_t timestamp_sec, long timestamp_usec, /* If an ERROR message (indicating a version mismatch) arrives from MC in state HC_IDLE (i.e. before CONFIGURE) it shall be printed to the console as well. */ - if (TTCN_Runtime::get_state() == TTCN_Runtime::HC_IDLE) return FALSE; - else return TRUE; + return TTCN_Runtime::get_state() != TTCN_Runtime::HC_IDLE; } else { switch (TTCN_Runtime::get_state()) { case TTCN_Runtime::HC_EXIT: