mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-08 13:06:05 +08:00
fix error.
This commit is contained in:
parent
55ea6ca204
commit
46a09462b0
@ -382,7 +382,9 @@ func (c *QQClient) init(tokenLogin bool) error {
|
|||||||
if len(c.g) == 0 {
|
if len(c.g) == 0 {
|
||||||
c.Warning("device lock is disable. http api may fail.")
|
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 {
|
if tokenLogin {
|
||||||
notify := make(chan struct{})
|
notify := make(chan struct{})
|
||||||
d := c.waitPacket("StatSvc.ReqMSFOffline", func(i interface{}, err error) {
|
d := c.waitPacket("StatSvc.ReqMSFOffline", func(i interface{}, err error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user