Fix fusion of computers that were re-added after becoming unreachable

This commit is contained in:
Cameron Gutman 2015-01-25 18:41:44 -05:00
parent 82cabce86e
commit ca0a0da19f

View File

@ -251,6 +251,11 @@ public class ComputerManagerService extends Service {
((!details.name.isEmpty() && !tuple.computer.name.isEmpty()) && ((!details.name.isEmpty() && !tuple.computer.name.isEmpty()) &&
tuple.computer.name.equals(details.name))) { tuple.computer.name.equals(details.name))) {
// Update details anyway in case this machine has been re-added by IP
// after not being reachable by our existing information
tuple.computer.localIp = details.localIp;
tuple.computer.remoteIp = details.remoteIp;
// Start a polling thread if polling is active // Start a polling thread if polling is active
if (pollingActive && tuple.thread == null) { if (pollingActive && tuple.thread == null) {
tuple.thread = createPollingThread(details); tuple.thread = createPollingThread(details);