mirror of
https://github.com/docmost/docmost.git
synced 2026-05-19 16:04:17 +08:00
fix: graceful collab shutdown
This commit is contained in:
@@ -51,11 +51,8 @@ export class CollaborationModule implements OnModuleInit, OnModuleDestroy {
|
||||
}
|
||||
|
||||
async onModuleDestroy(): Promise<void> {
|
||||
if (this.collaborationGateway) {
|
||||
await this.collaborationGateway.destroy();
|
||||
}
|
||||
if (this.collabWsAdapter) {
|
||||
this.collabWsAdapter.destroy();
|
||||
}
|
||||
this.collabWsAdapter?.close();
|
||||
await this.collaborationGateway?.destroy();
|
||||
this.collabWsAdapter?.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user