fix: added flush() for proper shutdown

https://telecominfraproject.atlassian.net/browse/WIFI-13597

NOTE: This PR is port of https://github.com/Telecominfraproject/wlan-cloud-ucentralgw/pull/361

Signed-off-by: Ivan Chvets <ivan.chvets@kinarasystems.com>
This commit is contained in:
Ivan Chvets
2024-06-14 16:51:47 -04:00
parent 8d04cbc059
commit 46b9524903

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