From f602ba600f5d3b9444b4072b7cd0b27df14be8b8 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 15 Aug 2019 17:45:45 +0200 Subject: Close the error channel --- shapeshifter.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shapeshifter.go b/shapeshifter.go index 0974596..faab05e 100644 --- a/shapeshifter.go +++ b/shapeshifter.go @@ -38,6 +38,9 @@ func (ss *ShapeShifter) Close() error { if ss.ln != nil { return ss.ln.Close() } + if ss.errChan != nil { + close(ss.errChan) + } return nil } -- cgit v1.2.3