Skip to content

Commit 0e453b2

Browse files
authored
Merge pull request fluent#87 from tulequ/master
stopRunning must be init for Close() work correctly
2 parents 89c0329 + 3fe534f commit 0e453b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fluent/fluent.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ func newWithDialer(config Config, d dialer) (f *Fluent, err error) {
146146
Config: config,
147147
dialer: d,
148148
pending: make(chan *msgToSend, config.BufferLimit),
149+
stopRunning: make(chan bool, 1),
149150
}
150151
f.wg.Add(1)
151152
go f.run()

0 commit comments

Comments
 (0)