mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
try to fix oom.
This commit is contained in:
parent
26b45139c1
commit
54bd3de38b
@ -87,7 +87,7 @@ type QQClient struct {
|
|||||||
groupDataTransSeq int32
|
groupDataTransSeq int32
|
||||||
highwayApplyUpSeq int32
|
highwayApplyUpSeq int32
|
||||||
eventHandlers *eventHandlers
|
eventHandlers *eventHandlers
|
||||||
stat Statistics
|
stat *Statistics
|
||||||
|
|
||||||
groupListLock sync.Mutex
|
groupListLock sync.Mutex
|
||||||
}
|
}
|
||||||
@ -179,6 +179,7 @@ func NewClientMd5(uin int64, passwordMd5 [16]byte) *QQClient {
|
|||||||
onlinePushCache: utils.NewCache(time.Second * 15),
|
onlinePushCache: utils.NewCache(time.Second * 15),
|
||||||
version: genVersionInfo(SystemDeviceInfo.Protocol),
|
version: genVersionInfo(SystemDeviceInfo.Protocol),
|
||||||
servers: []*net.TCPAddr{},
|
servers: []*net.TCPAddr{},
|
||||||
|
stat: &Statistics{},
|
||||||
}
|
}
|
||||||
sso, err := getSSOAddress()
|
sso, err := getSSOAddress()
|
||||||
if err == nil && len(sso) > 0 {
|
if err == nil && len(sso) > 0 {
|
||||||
|
@ -14,6 +14,6 @@ type Statistics struct {
|
|||||||
once sync.Once
|
once sync.Once
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *QQClient) GetStatistics() Statistics {
|
func (c *QQClient) GetStatistics() *Statistics {
|
||||||
return c.stat
|
return c.stat
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user