Refactor smppsession

This commit is contained in:
David Majdandžić
2023-03-29 18:55:31 +02:00
parent 330051382e
commit ad63061209
7 changed files with 96 additions and 205 deletions

View File

@@ -61,8 +61,6 @@ export abstract class SmppSession {
abstract close(): Promise<void>;
abstract initialize(): void;
abstract serialize(): object;
on(event: string, callback: (...args: any[]) => void): void {
@@ -168,7 +166,7 @@ export abstract class SmppSession {
});
});
if (successful === 0) {
return Promise.reject("No PDU processor was able to process the PDU");
return Promise.resolve("No PDU processor was able to process the PDU");
} else {
return Promise.resolve();
}