mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
15c2af5fbf
commit
46e2f4e22c
10
server.ts
10
server.ts
@@ -537,9 +537,11 @@ function createHttpsServer(keys) {
|
|||||||
// Graceful shutdown when signalled
|
// Graceful shutdown when signalled
|
||||||
const terminator = createHttpTerminator({server: listener});
|
const terminator = createHttpTerminator({server: listener});
|
||||||
process.on('SIGINT', () => {
|
process.on('SIGINT', () => {
|
||||||
|
void (async ()=> {
|
||||||
console.debug('Closing HTTPS server on signal');
|
console.debug('Closing HTTPS server on signal');
|
||||||
terminator.terminate().catch(e => { console.error(e); });
|
await terminator.terminate().catch(e => { console.error(e); });
|
||||||
console.debug('HTTPS server closed');
|
console.debug('HTTPS server closed');
|
||||||
|
})();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -556,9 +558,11 @@ function run() {
|
|||||||
// Graceful shutdown when signalled
|
// Graceful shutdown when signalled
|
||||||
const terminator = createHttpTerminator({server: listener});
|
const terminator = createHttpTerminator({server: listener});
|
||||||
process.on('SIGINT', () => {
|
process.on('SIGINT', () => {
|
||||||
|
void (async () => {
|
||||||
console.debug('Closing HTTP server on signal');
|
console.debug('Closing HTTP server on signal');
|
||||||
terminator.terminate().catch(e => { console.error(e); });
|
await terminator.terminate().catch(e => { console.error(e); });
|
||||||
console.debug('HTTP server closed.');
|
console.debug('HTTP server closed.');return undefined;
|
||||||
|
})();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user