From 7de4e379f2710da1fc29370e975d23b070b64f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mille=20Bostr=C3=B6m?= Date: Wed, 19 Jan 2022 07:24:03 +0100 Subject: [PATCH] Fixed check of released devices (#64) --- src/Testura.Android/Device/AndroidDeviceFactory.cs | 2 +- src/Testura.Android/Testura.Android.csproj | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Testura.Android/Device/AndroidDeviceFactory.cs b/src/Testura.Android/Device/AndroidDeviceFactory.cs index a4c538b..b966384 100644 --- a/src/Testura.Android/Device/AndroidDeviceFactory.cs +++ b/src/Testura.Android/Device/AndroidDeviceFactory.cs @@ -155,7 +155,7 @@ private void ReleaseTimedOutDevices() lock (BusyDevices) { var devices = BusyDevices - .Where(b => b.initialized.Add(_releaseDeviceAfter.Value) > DateTime.Now) + .Where(b => DateTime.Now > b.initialized.Add(_releaseDeviceAfter.Value)) .ToList(); foreach (var device in devices) diff --git a/src/Testura.Android/Testura.Android.csproj b/src/Testura.Android/Testura.Android.csproj index 051639c..6976785 100644 --- a/src/Testura.Android/Testura.Android.csproj +++ b/src/Testura.Android/Testura.Android.csproj @@ -5,8 +5,8 @@ enable enable true - 4.1.0 - 4.1.0 + 4.1.1 + 4.1.1 Mille Bostrom Copyright 2021 Testura.Android @@ -16,9 +16,9 @@ https://i.ibb.co/nnSPd11/logo128-new.png logo.png https://github.com/Testura/Testura.Android - Release 4.1.0 + Release 4.1.1 - - Added releaseDeviceAfter to AndroidDeviceFactory + - Fixed check of released devices in AndroidDeviceFactory true