diff --git a/CHANGELOG.md b/CHANGELOG.md index ed5cce7..ae204c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.3.1 + +- Fix connections being timed out too quickly + ## 1.3.0 - Added ability to retrieve cached values diff --git a/lib/src/nt4_client.dart b/lib/src/nt4_client.dart index ed10a6b..e64a58c 100644 --- a/lib/src/nt4_client.dart +++ b/lib/src/nt4_client.dart @@ -377,7 +377,7 @@ class NT4Client { int currentTime = _getClientTimeUS(); - if (currentTime - _lastReceivedTime > _timeoutInterval) { + if (currentTime - _lastReceivedTime > _timeoutInterval * 1000) { _wsOnClose(); } } diff --git a/pubspec.yaml b/pubspec.yaml index 77a35e5..823329f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: nt4 description: Dart implementation of the WPILib NT4 protocol -version: 1.3.0 +version: 1.3.1 repository: https://github.com/mjansen4857/nt4 environment: