Skip to content

Commit 9c08d07

Browse files
committed
client: reconnect after an EOF
See: r3labs#148
1 parent c6d5381 commit 9c08d07

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

client.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"encoding/base64"
1111
"errors"
1212
"fmt"
13-
"io"
1413
"net/http"
1514
"sync"
1615
"sync/atomic"
@@ -213,10 +212,6 @@ func (c *Client) readLoop(reader *EventStreamReader, outCh chan *Event, erChan c
213212
// Read each new line and process the type of event
214213
event, err := reader.ReadEvent()
215214
if err != nil {
216-
if err == io.EOF {
217-
erChan <- nil
218-
return
219-
}
220215
// run user specified disconnect function
221216
if c.disconnectcb != nil {
222217
c.Connected = false

0 commit comments

Comments
 (0)