Browse Source

fix-2751

tags/v1.22.8.2^2
ychao_1983 3 years ago
parent
commit
a0f2f7f5b6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/cloudbrain/resty.go

+ 1
- 1
modules/cloudbrain/resty.go View File

@@ -93,7 +93,7 @@ sendjob:
return nil, fmt.Errorf("resty get queues detail failed: %s", err)
}

if jobResult.Code == errInvalidToken && retry < 1 {
if (res.StatusCode() == http.StatusUnauthorized || jobResult.Code == errInvalidToken) && retry < 1 {
retry++
_ = loginCloudbrain()
goto sendjob


Loading…
Cancel
Save