diff --git a/src/util-napatech.c b/src/util-napatech.c index b23bd1316e..74ff82fda7 100644 --- a/src/util-napatech.c +++ b/src/util-napatech.c @@ -643,7 +643,7 @@ static void *NapatechStatsLoop(void *arg) "active streams."); } - TmThreadsSetFlag(tv, THV_INIT_DONE); + TmThreadsSetFlag(tv, THV_INIT_DONE | THV_RUNNING); while (1) { if (TmThreadsCheckFlag(tv, THV_KILL)) { SCLogDebug("NapatechStatsLoop THV_KILL detected"); @@ -1027,7 +1027,7 @@ static void *NapatechBufMonitorLoop(void *arg) exit(EXIT_FAILURE); } - TmThreadsSetFlag(tv, THV_INIT_DONE); + TmThreadsSetFlag(tv, THV_INIT_DONE | THV_RUNNING); while (1) { if (TmThreadsCheckFlag(tv, THV_KILL)) { SCLogDebug("NapatechBufMonitorLoop THV_KILL detected"); @@ -1217,7 +1217,6 @@ void NapatechStartStats(void) FatalError("Failed to spawn thread for NapatechBufMonitor - Killing engine."); } - return; }