1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

try to fix oom.

This commit is contained in:
Mrs4s 2020-11-22 13:52:37 +08:00
parent 26b45139c1
commit 54bd3de38b
2 changed files with 3 additions and 2 deletions

View File

@ -87,7 +87,7 @@ type QQClient struct {
groupDataTransSeq int32
highwayApplyUpSeq int32
eventHandlers *eventHandlers
stat Statistics
stat *Statistics
groupListLock sync.Mutex
}
@ -179,6 +179,7 @@ func NewClientMd5(uin int64, passwordMd5 [16]byte) *QQClient {
onlinePushCache: utils.NewCache(time.Second * 15),
version: genVersionInfo(SystemDeviceInfo.Protocol),
servers: []*net.TCPAddr{},
stat: &Statistics{},
}
sso, err := getSSOAddress()
if err == nil && len(sso) > 0 {

View File

@ -14,6 +14,6 @@ type Statistics struct {
once sync.Once
}
func (c *QQClient) GetStatistics() Statistics {
func (c *QQClient) GetStatistics() *Statistics {
return c.stat
}