fixing crashes

This commit is contained in:
Luke Berndt
2023-05-09 21:04:43 -04:00
parent a813dc21e8
commit d359f5faae
2 changed files with 2 additions and 2 deletions

View File

@@ -237,7 +237,7 @@ exports.shiftStats = async function () {
tg.totalLen = 0;
if (tgHistoryTotal == 0) {
// there has been no recent activity on this talkgroup. remove it from the stats.
delete stat[talkgroupNum];
delete sysTalkgroupStats[talkgroupNum];
}
}
}