Skip to content

Commit

Permalink
Fixed incorrect RTT timestamp units
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Dec 23, 2023
1 parent 77dfd9f commit 701261c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/services/nt4_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,9 @@ class NT4Client {
return;
}

int currentTime = DateTime.now().millisecondsSinceEpoch;
int currentTime = _getClientTimeUS();

if (currentTime - _lastPongTime > _timeoutInterval) {
if (currentTime - _lastPongTime > _timeoutInterval * 1000) {
_wsOnClose();
}
}
Expand Down

0 comments on commit 701261c

Please sign in to comment.