Minor cleanup

This commit is contained in:
2023-12-04 13:01:57 +01:00
parent 06c7f42bf4
commit f8a8365f90
2 changed files with 4 additions and 1 deletions

View File

@@ -107,6 +107,10 @@ for (let i = 0; i < options.sessions; i++) {
sessionLogger.info(
`Connected, sending bind_transciever with systemId '${options.systemid}' and password '${options.password}'...`
);
session.on('close', function () {
sessionLogger.error(`Session closed`);
process.exit(1);
});
session.bind_transceiver(
{
system_id: options.systemid,

View File

@@ -89,7 +89,6 @@ async function sendPdu(session, pdu, logger, uselongsms) {
}
} else {
session.send(pdu, (respPdu) => {
console.log(respPdu);
if (respPdu.command_status === 0) {
resolve(respPdu);
} else {