Fix manually adding PCs

This commit is contained in:
Cameron Gutman 2014-09-27 15:45:37 -07:00
parent 36664133f8
commit 31b0bcf041

View File

@ -402,7 +402,12 @@ public class ComputerManagerService extends Service {
public void run() { public void run() {
boolean newPc = (details.name == null); 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; return;
} }