Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

on render timeout plugin callback #20

Merged
merged 3 commits into from

3 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 9, 2014
  1. @littledesu
  2. @littledesu

    fix callback next

    littledesu authored
  3. @Shumkov

    Update renderer.js

    Shumkov authored
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +1 −0  .gitignore
  2. +6 −1 lib/renderer.js
View
1  .gitignore
@@ -1,3 +1,4 @@
*.iml
node_modules/
.DS_Store
+.idea/
View
7 lib/renderer.js
@@ -182,11 +182,16 @@ PrerenderRenderer.prototype.onInitializeTimeout = function() {
* Handle rendering timeouts
*/
PrerenderRenderer.prototype.onRenderTimeout = function() {
+ var _this = this;
+
if (this.job) {
this.logger.log('error', "Timed out while rendering: " + this.job.page.url);
this.job.callback(this.job);
}
- this.busy = false;
+
+ this.pluginEvent('onRenderTimeout', [_this, this.job], function() {
+ _this.busy = false;
+ });
};
/*
Something went wrong with that request. Please try again.