From f1ccc427da842a6371134d2c8abf29a82f942e32 Mon Sep 17 00:00:00 2001 From: Matthew Nibecker Date: Tue, 6 Jul 2021 09:46:21 -0400 Subject: [PATCH] Fix no record deadlock Fix error where an analyze process that writes no records caused a deadlock. Closes #112 --- cli/analyzecli/display.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/analyzecli/display.go b/cli/analyzecli/display.go index 3e4a8769..36cd410c 100644 --- a/cli/analyzecli/display.go +++ b/cli/analyzecli/display.go @@ -32,8 +32,10 @@ func NewDisplay(jsonOut bool, pcapsize int64, span nano.Span) Display { span: s, } } + live := uilive.New() + live.Start() return &statusLineDisplay{ - live: uilive.New(), + live: live, pcapsize: pcapsize, warnings: make(map[string]int), }