From e2ab307da733afb8975af211a3d579d0b211a76c Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Sat, 12 Jul 2025 17:51:27 +0800 Subject: [PATCH] hostDiscovery improvement --- VoidLink/ViewControllers/MainFrameViewController.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/VoidLink/ViewControllers/MainFrameViewController.m b/VoidLink/ViewControllers/MainFrameViewController.m index a98f41ca..718814b7 100644 --- a/VoidLink/ViewControllers/MainFrameViewController.m +++ b/VoidLink/ViewControllers/MainFrameViewController.m @@ -1634,8 +1634,6 @@ static NSMutableSet* hostList; }]; - // Reset state first so we can rediscover hosts that were deleted before - [_discMan resetDiscoveryState]; [_discMan startDiscovery]; // This will refresh the applist when a paired host is selected @@ -1902,6 +1900,9 @@ static NSMutableSet* hostList; // Update the title in case we now have a PC [self updateTitle]; + + // Reset state first so we can rediscover hosts that were deleted before + [_discMan resetDiscoveryState]; } // This function forces immediate decoding of the UIImage, rather