Skip to content

Commit

Permalink
Merge pull request #6 from greenkeeperio/stop_bothering_npm_so_much
Browse files Browse the repository at this point in the history
fix: add timeout
  • Loading branch information
janl authored Oct 25, 2017
2 parents bbaf00b + 24c1893 commit a49b8ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const {parseRegistryUrl, checkFollower, startChanges} = require('./lib/follow')
client,
registry
}, (err, changes) => {
if (err) return start()
if (err) {
setTimeout(start, 1000)
}
const check = checkFollower.bind(null, {
registry,
changes,
Expand Down

0 comments on commit a49b8ec

Please sign in to comment.