Fix error event unbinding

This commit is contained in:
wpetit 2018-09-20 15:44:34 +02:00
parent a968004d4e
commit 425d139b1c
1 changed files with 1 additions and 2 deletions

View File

@ -39,6 +39,7 @@ func (c *client) Connect() error {
c.conn = conn
err = conn.On(gosocketio.OnConnection, func(h *gosocketio.Channel) {
conn.Off(gosocketio.OnError)
c.logf("connected with sid '%s'", h.Id())
err = c.sendBrowserConnected()
wg.Done()
@ -59,8 +60,6 @@ func (c *client) Connect() error {
wg.Wait()
conn.On(gosocketio.OnError, nil)
return err
}