Skip to content

Commit

Permalink
lib/api: wait for channelId before follow check
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Apr 3, 2018
1 parent bee49a3 commit aa7c0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/api.js
Expand Up @@ -741,7 +741,7 @@ class API {

if (_.isNil(user.id)) return // skip check if ID doesn't exist

if ((global.api.remainingAPICalls <= 10 && global.api.refreshAPICalls > _.now() / 1000)) {
if ((global.api.remainingAPICalls <= 10 && global.api.refreshAPICalls > _.now() / 1000) || _.isNil(cid)) {
d('Skip for rate-limit to refresh and re-add user to queue')
this.rate_limit_follower_check.push(user.username)
return
Expand Down

0 comments on commit aa7c0e3

Please sign in to comment.