MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / plannedDisconnect

Method plannedDisconnect

client/network.go:309–313  ·  view source on GitHub ↗

plannedDisconnect 计划中断线事件

(_ *network.TCPClient)

Source from the content-addressed store, hash-verified

307
308// plannedDisconnect 计划中断线事件
309func (c *QQClient) plannedDisconnect(_ *network.TCPClient) {
310 c.debugln("planned disconnect.")
311 c.stat.DisconnectTimes.Add(1)
312 c.Online.Store(false)
313}
314
315// unexpectedDisconnect 非预期断线事件
316func (c *QQClient) unexpectedDisconnect(_ *network.TCPClient, e error) {

Callers 1

Calls 1

debuglnMethod · 0.95

Tested by

no test coverage detected