Skip to content

Commit

Permalink
null safety
Browse files Browse the repository at this point in the history
  • Loading branch information
benjirewis committed Jun 27, 2024
1 parent be817d7 commit eec52f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/rpc/dial.dart
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Future _logConnectionStats(Stopwatch webrtcDialSW, RTCPeerConnection peerConnect
if (stat.type == 'candidate-pair' && stat.values['nominated']) {
// Use 'lastPacketSentTimestamp' on candidate pair to estimate when the
// pair was nominated.
final double lpst = stat.values['lastPacketSentTimestamp'] as double;
final double lpst = stat.values['lastPacketSentTimestamp'] ?? 0;
final DateTime nominatedTime = DateTime.fromMillisecondsSinceEpoch(lpst.toInt());

final lcid = stat.values['localCandidateId'];
Expand Down

0 comments on commit eec52f0

Please sign in to comment.