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