Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Commit

Permalink
#67 fix, make it work when options.cluster is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
olegp committed Aug 25, 2013
1 parent 27d429f commit 62978c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/httpserver.js
Expand Up @@ -102,7 +102,7 @@ var jsgi = exports.jsgi = function(app) {

exports.started = false;
var main = exports.main = function(module, port, options) {
if (cluster.isMaster && options && 'cluster' in options) {
if (cluster.isMaster && options && options.cluster) {
if(options.cluster == 0) options.cluster = cpus;
for (var i = 0; i < options.cluster; i++) {
cluster.fork(process.env);
Expand Down

0 comments on commit 62978c0

Please sign in to comment.