1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-07 20:45:53 +08:00

fix error.

This commit is contained in:
Mrs4s 2021-04-10 20:37:41 +08:00
parent 55ea6ca204
commit 46a09462b0

View File

@ -382,7 +382,9 @@ func (c *QQClient) init(tokenLogin bool) error {
if len(c.g) == 0 {
c.Warning("device lock is disable. http api may fail.")
}
_ = c.registerClient()
if err := c.registerClient(); err != nil {
return errors.Wrap(err, "register error")
}
if tokenLogin {
notify := make(chan struct{})
d := c.waitPacket("StatSvc.ReqMSFOffline", func(i interface{}, err error) {