diff --git a/src/NetworkInterface.cpp b/src/NetworkInterface.cpp index 833c4940d9d5..da4f277ecfac 100644 --- a/src/NetworkInterface.cpp +++ b/src/NetworkInterface.cpp @@ -5341,7 +5341,9 @@ void NetworkInterface::runShutdownTasks() { if (ntop->getPrefs()->flushFlowsOnShutdown()) { /* Setting all flows as "ready to purge" (see isReadyToPurge) and dump them to the DB */ periodicStatsUpdate(); +#ifdef NTOPNG_PRO flushFlowDump(); +#endif } }