Skip to content

Commit 64d64b6

Browse files
committed
Merge pull request googollee#16 from rykov/master
Send a Disconnect frame on client.Quit()
2 parents 6a6f51d + c710d61 commit 64d64b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ func (c *Client) Run() {
105105
}
106106

107107
func (c *Client) Quit() error {
108-
return nil
108+
dc := new(disconnectPacket)
109+
return c.session.defaultNS.sendPacket(dc)
109110
}
110111

111112
func (c *Client) Of(name string) (nameSpace *NameSpace) {

0 commit comments

Comments
 (0)