diff options
author | Ruben Pollan <meskio@sindominio.net> | 2019-08-15 17:45:45 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2019-08-15 17:45:45 +0200 |
commit | f602ba600f5d3b9444b4072b7cd0b27df14be8b8 (patch) | |
tree | 26d438a129b46e400cbea812068a234a347e7f28 | |
parent | 66fa997244f2ec6dcc28c837423639fa20e63125 (diff) |
Close the error channel
-rw-r--r-- | shapeshifter.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |