From 7b12fd1ad2607566e8930adf3a2376e24c0fd9e1 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 27 Feb 2015 01:33:33 -0500 Subject: [PATCH] Immediately show the PC as offline if the first poll fails --- .../java/com/limelight/computers/ComputerManagerService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/limelight/computers/ComputerManagerService.java b/app/src/main/java/com/limelight/computers/ComputerManagerService.java index 06e3be56..217976e7 100644 --- a/app/src/main/java/com/limelight/computers/ComputerManagerService.java +++ b/app/src/main/java/com/limelight/computers/ComputerManagerService.java @@ -124,7 +124,8 @@ public class ComputerManagerService extends Service { @Override public void run() { - int offlineCount = 0; + // Start with an immediate offline notification + int offlineCount = Integer.MAX_VALUE; while (!isInterrupted() && pollingActive) { try { // Check if this poll has modified the details