mirror of
https://github.com/docmost/docmost.git
synced 2025-11-16 05:31:09 +10:00
database connection retry
This commit is contained in:
@ -39,7 +39,11 @@ export class CollaborationModule implements OnModuleInit, OnModuleDestroy {
|
||||
}
|
||||
|
||||
onModuleDestroy(): any {
|
||||
this.collaborationGateway.destroy();
|
||||
this.collabWsAdapter.destroy();
|
||||
if (this.collaborationGateway) {
|
||||
this.collaborationGateway.destroy();
|
||||
}
|
||||
if (this.collabWsAdapter) {
|
||||
this.collabWsAdapter.destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user