Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
Fixed bug where cancelling a restart prevents from further restart at…
Browse files Browse the repository at this point in the history
…tempts
  • Loading branch information
Akkadius committed Sep 3, 2021
1 parent 6c59f74 commit 8df1b01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.16]
* Fixed bug where cancelling a restart prevents from further restart attempts

## [2.0.15]
* Hack together zone log streaming support again (Relies on server configured for Websockets)

Expand Down
7 changes: 4 additions & 3 deletions app/core/server-process-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,10 @@ module.exports = {
restartServer: async function (options = []) {
this.init(options, true);

/**
* Delayed restart
*/
// reset timed restart if triggered restart again
this.cancelTimedRestart = false;

// delayed restart
if (options.timer && options.timer > 0) {

const startTime = Math.floor(new Date() / 1000);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eqemu-admin",
"version": "2.0.15",
"version": "2.0.16",
"private": true,
"bin": "./app/bin/admin",
"scripts": {
Expand Down

0 comments on commit 8df1b01

Please sign in to comment.