prevent closing an already closed channel in livelog

pull/1/head
Brad Rydzewski 5 years ago
parent f38fbc5ea9
commit 605ac86adf

@ -1,6 +1,10 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.2.1] - 2019-07-27
### Fixed
- close and already closed channel in livelog causes panic
## [1.2.0] - 2019-07-27
### Added
- semver environment variables

@ -146,6 +146,7 @@ func (b *Writer) stop() bool {
if b.closed == false {
close(b.close)
closed = true
b.closed = true
}
b.Unlock()
return closed

Loading…
Cancel
Save