mirror of
https://github.com/AynaLivePlayer/blivedm-go.git
synced 2025-12-06 11:22:50 +08:00
assign token only if success
This commit is contained in:
@@ -95,8 +95,8 @@ func (c *Client) init() error {
|
||||
for _, h := range info.Data.HostList {
|
||||
c.hostList = append(c.hostList, h.Host)
|
||||
}
|
||||
c.token = info.Data.Token
|
||||
}
|
||||
c.token = info.Data.Token
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user