Fix race condition where a container stopping and starting again would cause logs to miss logs.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-03-07 15:34:53 -05:00
commit e8a93821d4
2 changed files with 47 additions and 12 deletions

View file

@ -185,6 +185,9 @@ def start_producer_thread(thread_args):
def watch_events(thread_map, event_stream, presenters, thread_args):
for event in event_stream:
if event['action'] == 'stop':
thread_map.pop(event['id'], None)
if event['action'] != 'start':
continue