do not consider p2palive messages for camera liveness

This commit is contained in:
David Ventura
2024-05-03 15:57:55 +02:00
parent d7d3b91528
commit a93564cd11
+3 -1
View File
@@ -43,7 +43,9 @@ const handleIncoming: msgCb = (session, handlers, msg, rinfo) => {
const cmd = CommandsByValue[raw];
logger.log("trace", `<< ${cmd}`);
handlers[cmd](session, dv, rinfo);
session.lastReceivedPacket = Date.now();
if (raw != Commands.P2PAlive && raw != Commands.P2PAliveAck) {
session.lastReceivedPacket = Date.now();
}
};
export const makeSession = (