From 31b0bcf0414b69d15cfb5b97757337f6d126a56d Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 27 Sep 2014 15:45:37 -0700 Subject: [PATCH] Fix manually adding PCs --- src/com/limelight/computers/ComputerManagerService.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/com/limelight/computers/ComputerManagerService.java b/src/com/limelight/computers/ComputerManagerService.java index 009cc143..456d32df 100644 --- a/src/com/limelight/computers/ComputerManagerService.java +++ b/src/com/limelight/computers/ComputerManagerService.java @@ -402,7 +402,12 @@ public class ComputerManagerService extends Service { public void run() { boolean newPc = (details.name == null); - if (stopped) { + // This is called from addComputerManually() where we don't + // want to block the initial poll if polling is disabled, so + // we explicitly let this through if we've never seen this + // PC before. This path won't be triggered normally when polling + // is disabled because the mDNS discovery is stopped. + if (stopped && !newPc) { return; }