Fix Close implementation of plugins (#305)

Indeed they do not declare error as return type and so, were not called at the end of the program
This commit is contained in:
Marc Lallaouret
2016-06-16 22:33:07 +06:00
committed by Leonid Bugaev
parent 95eecb6b1c
commit d0e1858eb3
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -189,6 +189,7 @@ func (i *FileInput) emit() {
log.Printf("FileInput: end of file '%s'\n", i.path)
}
func (i *FileInput) Close() {
func (i *FileInput) Close() error {
i.currentFile.Close()
return nil
}