Skip to content

Commit

Permalink
fix: add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Realtin committed Oct 25, 2017
1 parent bbaf00b commit 24c1893
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 24c1893

Please sign in to comment.