2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-04-18 19:18:59 +00:00

Prevent double firing of event in consolesession

There is a timing scenario where an event could be double fired.
Prevent by clearing the event when sent.
This commit is contained in:
Jarrod Johnson 2016-03-05 15:42:17 -05:00
parent e9f2d7eb63
commit 8bf7a55b68

View File

@ -552,6 +552,7 @@ class ConsoleSession(object):
self.databuffer.append(data)
if self._evt:
self._evt.send()
self._evt = None
def get_next_output(self, timeout=45):
"""Poll for next available output on this console.