Retry events poll right away on EOF

This commit is contained in:
Arti Zirk 2023-08-10 20:07:39 +03:00
parent 24ca04b2aa
commit e03bf19427

View File

@ -362,6 +362,9 @@ func waitEvents() error {
for { for {
msg, err := ParseNextMessage(reader) msg, err := ParseNextMessage(reader)
if err != nil { if err != nil {
if err == io.EOF {
return nil
}
return err return err
} }