Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
fix: sleep 1min for preloading all the cookie
Browse files Browse the repository at this point in the history
That means crobtab would be 1 minute ahead of sign time
  • Loading branch information
beetcb authored Dec 21, 2020
1 parent 0c2dcb8 commit baf67ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function sleep(timeout) {
// Pre-loading cookie for sign in
await handleCookie()
// wait 1 minute for signing
await sleep(0)
await sleep(1)

// sign in asynchronizedly with promise all and diff instance of signApp class
Promise.all(users.map(e => signIn(e)))
Expand Down

0 comments on commit baf67ce

Please sign in to comment.