diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5b141f7..9b02378 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,10 +3,7 @@ - - - - + diff --git a/reporter.go b/reporter.go index b677cdd..3249353 100644 --- a/reporter.go +++ b/reporter.go @@ -20,6 +20,11 @@ func (r *Reporter) Stop() { r.running = false r.tailer.Stop() r.tailer.Cleanup() + for { + if len(r.ReportingChannel) == 0 { + break + } + } close(r.ReportingChannel) }