diff --git a/src/suricata.c b/src/suricata.c index 1238f97..eba73e5 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -2681,12 +2681,6 @@ int main(int argc, char **argv) TmThreadDisableReceiveThreads(); if (suri.run_mode != RUNMODE_UNIX_SOCKET) { - /* we need a packet pool for FlowForceReassembly */ - PacketPoolInit(); - - FlowForceReassembly(); - /* kill receive threads when they have processed all - * flow timeout packets */ TmThreadDisablePacketThreads(); } @@ -2698,6 +2692,12 @@ int main(int argc, char **argv) FlowDisableFlowRecyclerThread(); } + if (suri.run_mode != RUNMODE_UNIX_SOCKET) { + /* we need a packet pool for FlowForceReassembly */ + PacketPoolInit(); + FlowForceReassembly(); + } + /* kill remaining threads */ TmThreadKillThreads();