Merge pull request #110 from Telecominfraproject/WIFI-13597-fix-kafka-producer-using-poll

fix: added flush() for proper shutdown
This commit is contained in:
i-chvets
2024-06-17 09:23:11 -04:00
committed by GitHub

View File

@@ -123,6 +123,7 @@ namespace OpenWifi {
} }
Note = Queue_.waitDequeueNotification(); Note = Queue_.waitDequeueNotification();
} }
Producer.flush();
poco_information(Logger_, "Stopped..."); poco_information(Logger_, "Stopped...");
} }
@@ -328,4 +329,4 @@ namespace OpenWifi {
partitions.front().get_partition())); partitions.front().get_partition()));
} }
} // namespace OpenWifi } // namespace OpenWifi