Immediately show the PC as offline if the first poll fails

This commit is contained in:
Cameron Gutman 2015-02-27 01:33:33 -05:00
parent 80d8c5953e
commit 7b12fd1ad2

View File

@ -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