Merge tag '13.13.2' into merge-upstream

This commit is contained in:
riku6460 2023-06-13 16:54:49 +09:00
commit 7bf877e226
No known key found for this signature in database
GPG key ID: 27414FA27DB94CF6
605 changed files with 20130 additions and 13063 deletions

View file

@ -201,7 +201,7 @@ export class ServerService implements OnApplicationShutdown {
fastify.register(this.clientServerService.createServer);
this.streamingApiServerService.attachStreamingApi(fastify.server);
this.streamingApiServerService.attach(fastify.server);
fastify.server.on('error', err => {
switch ((err as any).code) {
@ -229,7 +229,14 @@ export class ServerService implements OnApplicationShutdown {
await fastify.ready();
}
async onApplicationShutdown(signal: string): Promise<void> {
@bindThis
public async dispose(): Promise<void> {
await this.streamingApiServerService.detach();
await this.#fastify.close();
}
@bindThis
async onApplicationShutdown(signal: string): Promise<void> {
await this.dispose();
}
}