fix: collect expire rtp data record

This commit is contained in:
chaoc
2023-08-03 17:16:09 +08:00
parent 112708f056
commit 4d3b53cbb7

View File

@@ -104,6 +104,7 @@ public class VoIPFusionFunction extends KeyedCoProcessFunction<Integer, ObjectNo
out.collect(obj);
}
if (entry.getValue().getExpireTime() <= timestamp) {
out.collect(rtpState.get(address).getObj());
rtpState.remove(address);
}
}