electron-workers
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -198,2 +198,7 @@ | ||
var error = new Error(); | ||
error.workerTimeout = true; | ||
error.message = 'Worker Timeout, the worker process does not respond after ' + workerTimeout + 'ms'; | ||
cb(error); | ||
// mark worker as busy before recycling | ||
@@ -205,6 +210,2 @@ worker.isBusy = true; | ||
worker.recycle(function () { | ||
var error = new Error(); | ||
error.message = 'Worker Timeout, the worker process does not respond after ' + workerTimeout + 'ms'; | ||
cb(error); | ||
// mark worker as free after recycling | ||
@@ -211,0 +212,0 @@ worker.isBusy = false; |
@@ -220,5 +220,4 @@ 'use strict'; | ||
this._childProcess = undefined; | ||
this.start(cb); | ||
} | ||
this.start(cb); | ||
}; | ||
@@ -225,0 +224,0 @@ |
{ | ||
"name": "electron-workers", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Run electron scripts in managed workers", | ||
@@ -10,3 +10,3 @@ "main": "lib/index.js", | ||
"lint": "eslint src test", | ||
"test": "mocha test/test.js --timeout 4000", | ||
"test": "mocha test/test.js --timeout 7000", | ||
"prepublish": "npm-run-all lint clean build" | ||
@@ -13,0 +13,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27731
435