Skip to content

Commit

Permalink
fix(purge): pass in client to purgeLinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezra Chu authored and mbroadst committed Nov 23, 2016
1 parent 34c54df commit ab05f95
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 @@ -70,7 +70,9 @@ function purgeLinks(client) {
}

if (live) {
purgeTimeout = setTimeout(purgeLinks, ttl);
purgeTimeout = setTimeout(function() {
purgeLinks(client);
}, ttl);
}
}

Expand Down

0 comments on commit ab05f95

Please sign in to comment.