From e9b4c74dae5a79a6ad77f0f1328f90795e9cc421 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Thu, 10 Nov 2016 16:08:31 +0200 Subject: Fixed unit test isseus of calling is_stateless before initializing state Signed-off-by: Ido Barnea --- src/bp_sim.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bp_sim.cpp') diff --git a/src/bp_sim.cpp b/src/bp_sim.cpp index 62e8d822..734fd1b0 100755 --- a/src/bp_sim.cpp +++ b/src/bp_sim.cpp @@ -4419,7 +4419,7 @@ void CFlowGenListPerThread::stop_stateless_simulation_file(){ } void CFlowGenListPerThread::start_stateless_daemon_simulation(){ - + CGlobalInfo::m_options.m_run_mode = CParserOption::RUN_MODE_INTERACTIVE; m_cur_time_sec = 0; /* if no pending CP messages - the core will simply be stuck forever */ @@ -4438,6 +4438,7 @@ bool CFlowGenListPerThread::set_stateless_next_node( CGenNodeStateless * cur_nod void CFlowGenListPerThread::start_stateless_daemon(CPreviewMode &preview){ + CGlobalInfo::m_options.m_run_mode = CParserOption::RUN_MODE_INTERACTIVE; m_cur_time_sec = 0; /* set per thread global info, for performance */ m_preview_mode = preview; -- cgit 1.2.3-korg