Skip to content

Commit

Permalink
yet another client fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipejfc committed Apr 13, 2018
1 parent 223e6d5 commit b0c57c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ func New(debug bool) *Client {
packetDecoder: codec.NewPomeloPacketDecoder(),
packetChan: make(chan *packet.Packet),
IncomingMsgChan: make(chan *message.Message),
closeChan: make(chan struct{}),
debug: debug,
}
}
Expand Down Expand Up @@ -240,6 +239,7 @@ func (c *Client) ConnectTo(addr string) error {
return err
}

c.closeChan = make(chan struct{})
c.Connected = true

return nil
Expand Down

0 comments on commit b0c57c2

Please sign in to comment.