stop task while no sa token available and use_sa is true

This commit is contained in:
liaojack8 2020-07-05 15:15:39 +08:00
parent 33a8bdfd21
commit 8623faf2b7
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ async function get_access_token () {
// get_sa_token().catch(console.error) // get_sa_token().catch(console.error)
async function get_sa_token () { async function get_sa_token () {
if (!SA_TOKENS.length) SA_TOKENS = get_sa_batch() if (use_sa && !SA_TOKENS.length) SA_TOKENS = get_sa_batch()
while (SA_TOKENS.length) { while (SA_TOKENS.length) {
const tk = get_random_element(SA_TOKENS) const tk = get_random_element(SA_TOKENS)
try { try {