Avoid spawning a new instance of an already running server

This commit is contained in:
Björn Dahlgren 2018-01-02 14:30:39 +01:00
parent 01a9151c36
commit c84acff059

View File

@ -111,6 +111,10 @@ Server.prototype.getParameters = function () {
}
Server.prototype.start = function () {
if (this.instance) {
return this
}
var parameters = this.getParameters()
var server = new ArmaServer.Server({
admins: config.admins,