diff --git a/tail.go b/tail.go index 1bae11c..471c24d 100644 --- a/tail.go +++ b/tail.go @@ -158,10 +158,10 @@ func (tail *Tail) Stop() error { func (tail *Tail) close() { close(tail.Lines) - tail.colseFile() + tail.closeFile() } -func (tail *Tail) colseFile() { +func (tail *Tail) closeFile() { if tail.file != nil { tail.file.Close() tail.file = nil @@ -169,7 +169,7 @@ func (tail *Tail) colseFile() { } func (tail *Tail) reopen() error { - tail.colseFile() + tail.closeFile() for { var err error tail.file, err = OpenFile(tail.Filename)