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

Commit

Permalink
Merge pull request #901 from joelyoung/master
Browse files Browse the repository at this point in the history
Don't run auto-restart when server stopped;
  • Loading branch information
fantasyni committed Jan 22, 2017
2 parents 90a16ba + 71bf57f commit 353f015
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/modules/console.js
Expand Up @@ -160,6 +160,12 @@ var stop = function(app, agent, msg, cb) {
}
utils.invokeCallback(cb, null, { status: "part" });
} else {
var servers = app.getServers();
var serverIds = [];
for(var i in servers){
serverIds.push(i)
}
app.set(Constants.RESERVED.STOP_SERVERS, serverIds);
agent.notifyAll(module.exports.moduleId, { signal: msg.signal });
setTimeout(function() {
app.stop(true);
Expand Down

0 comments on commit 353f015

Please sign in to comment.