Fix center closing connections

This commit is contained in:
David Majdandžić
2023-03-31 21:09:10 +02:00
parent 5b26dd6a61
commit 085745f0c6

View File

@@ -122,7 +122,9 @@ export class Center extends SmppSession {
close(): Promise<void> {
return new Promise((resolve, reject) => {
this.logger.log1(`Center-${this.id} closing active connections`);
this.server.close();
this.sessions.forEach((session: any) => {
session.close();
});
this.setStatus(0);
resolve();
});