mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-07 12:43:32 +08:00
add: Disconnect()
This commit is contained in:
parent
e1f2ae7f80
commit
5a7da62985
@ -986,6 +986,13 @@ func (c *QQClient) connect() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *QQClient) Disconnect() {
|
||||
if c.Online {
|
||||
c.Online = false
|
||||
c.Conn.Close()
|
||||
}
|
||||
}
|
||||
|
||||
func (c *QQClient) SetCustomServer(servers []*net.TCPAddr) {
|
||||
c.servers = append(servers, c.servers...)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user