mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
removed node cluster spawn procs on ports
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
var async = require('async'),
|
||||
winston = require('winston'),
|
||||
cluster = require('cluster'),
|
||||
fs = require('fs'),
|
||||
path = require('path'),
|
||||
|
||||
@@ -51,7 +50,7 @@ SocketAdmin.before = function(socket, method, next) {
|
||||
|
||||
SocketAdmin.reload = function(socket, data, callback) {
|
||||
events.logWithUser(socket.uid, ' is reloading NodeBB');
|
||||
if (cluster.isWorker) {
|
||||
if (process.send) {
|
||||
process.send({
|
||||
action: 'reload'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user