actions fail invest: log SerrverService.dispose
This commit is contained in:
parent
de97a3e04b
commit
6aad9299dc
|
@ -305,8 +305,11 @@ export class ServerService implements OnApplicationShutdown {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async dispose(): Promise<void> {
|
public async dispose(): Promise<void> {
|
||||||
|
console.log('Disposing ServerService...');
|
||||||
await this.streamingApiServerService.detach();
|
await this.streamingApiServerService.detach();
|
||||||
|
this.logger.info('Streaming API server detached.');
|
||||||
await this.#fastify.close();
|
await this.#fastify.close();
|
||||||
|
this.logger.info('Fastify server closed.');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -174,9 +174,11 @@ export class StreamingApiServerService {
|
||||||
if (this.#cleanConnectionsIntervalId) {
|
if (this.#cleanConnectionsIntervalId) {
|
||||||
clearInterval(this.#cleanConnectionsIntervalId);
|
clearInterval(this.#cleanConnectionsIntervalId);
|
||||||
this.#cleanConnectionsIntervalId = null;
|
this.#cleanConnectionsIntervalId = null;
|
||||||
|
console.log('Clean connections interval cleared.');
|
||||||
}
|
}
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
this.#wss.close(() => resolve());
|
this.#wss.close(() => resolve());
|
||||||
|
console.log('WebSocket server closed.');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue