lang: funcs: Avoid erroneous empty message in readfile

Readfile had a bug where it sent an empty string on startup. This has
ben fixed, and it now waits until the file contents are ready before
sending a string.
This commit is contained in:
James Shubin
2019-02-27 06:00:40 -05:00
parent 95dab16e6e
commit 94c40909cc

View File

@@ -164,6 +164,7 @@ func (obj *ReadFileFunc) Stream() error {
//err = nil // reset
}
}()
continue // wait for an actual event or we'd send empty!
case err, ok := <-obj.events:
if !ok {