Skip to content

Commit 791b72a

Browse files
authored
Merge pull request #110 from Telecominfraproject/WIFI-13597-fix-kafka-producer-using-poll
fix: added flush() for proper shutdown
2 parents bb09f91 + 46b9524 commit 791b72a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/framework/KafkaManager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ namespace OpenWifi {
123123
}
124124
Note = Queue_.waitDequeueNotification();
125125
}
126+
Producer.flush();
126127
poco_information(Logger_, "Stopped...");
127128
}
128129

@@ -328,4 +329,4 @@ namespace OpenWifi {
328329
partitions.front().get_partition()));
329330
}
330331

331-
} // namespace OpenWifi
332+
} // namespace OpenWifi

0 commit comments

Comments
 (0)