mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-25 16:48:10 -07:00
only quit registered clients
This commit is contained in:
+6
-1
@@ -113,7 +113,12 @@ func (c *Client) readCommands() {
|
||||
m.SetClient(c)
|
||||
c.server.Command(m)
|
||||
}
|
||||
c.ConnectionClosed()
|
||||
|
||||
if c.registered {
|
||||
c.ConnectionClosed()
|
||||
} else {
|
||||
c.Destroy()
|
||||
}
|
||||
}
|
||||
|
||||
func (client *Client) writeReplies() {
|
||||
|
||||
Reference in New Issue
Block a user