Remove unnecessary CloseHandler from client codepath

This commit is contained in:
James Mills 2018-05-07 16:40:32 -07:00
parent fd4fec78bc
commit 0d6386f98d
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6

View File

@ -261,12 +261,6 @@ func (s *Subscriber) connect() {
log.Infof("successfully connected to %s", s.url)
conn.SetCloseHandler(func(code int, text string) error {
log.Debugf("recieved close from server %s: (%d) %s", s.url, code, text)
s.closeAndReconnect()
return nil
})
s.Lock()
s.conn = conn
s.Unlock()