mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Avoid spawning a new instance of an already running server
This commit is contained in:
parent
01a9151c36
commit
c84acff059
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user