Quit on ERROR
This commit is contained in:
parent
99b3ff519b
commit
e937f5d8b9
1 changed files with 7 additions and 0 deletions
|
@ -242,6 +242,13 @@ func (c *Client) recv() {
|
|||
if c.HandleNickInUse != nil {
|
||||
go c.writeNick(c.HandleNickInUse(msg.Params[1]))
|
||||
}
|
||||
|
||||
case Error:
|
||||
c.Messages <- msg
|
||||
c.connChange(false, nil)
|
||||
time.Sleep(5 * time.Second)
|
||||
close(c.quit)
|
||||
return
|
||||
}
|
||||
|
||||
c.Messages <- msg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue