stop task while no sa token available and use_sa is true
This commit is contained in:
parent
33a8bdfd21
commit
8623faf2b7
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue