mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
server: Fix stop Gate creation and check
This commit is contained in:
parent
10c55a2328
commit
c8d45586c1
1 changed files with 1 additions and 2 deletions
|
@ -165,7 +165,7 @@ exports.start = async () => {
|
||||||
return express.server;
|
return express.server;
|
||||||
};
|
};
|
||||||
|
|
||||||
let stopDoneGate;
|
const stopDoneGate = new Gate();
|
||||||
exports.stop = async () => {
|
exports.stop = async () => {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case State.STARTING:
|
case State.STARTING:
|
||||||
|
@ -187,7 +187,6 @@ exports.stop = async () => {
|
||||||
throw new Error(`unknown State: ${state.toString()}`);
|
throw new Error(`unknown State: ${state.toString()}`);
|
||||||
}
|
}
|
||||||
logger.info('Stopping Etherpad...');
|
logger.info('Stopping Etherpad...');
|
||||||
const stopDoneGate = new Gate();
|
|
||||||
state = State.STOPPING;
|
state = State.STOPPING;
|
||||||
try {
|
try {
|
||||||
let timeout = null;
|
let timeout = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue