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:
parent
26b45139c1
commit
54bd3de38b
@ -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 {
|
||||
|
@ -14,6 +14,6 @@ type Statistics struct {
|
||||
once sync.Once
|
||||
}
|
||||
|
||||
func (c *QQClient) GetStatistics() Statistics {
|
||||
func (c *QQClient) GetStatistics() *Statistics {
|
||||
return c.stat
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user