mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 02:53:05 +00:00
Fix fusion of computers that were re-added after becoming unreachable
This commit is contained in:
parent
82cabce86e
commit
ca0a0da19f
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user