Remove InterruptedException from NsdService#create
- NsdService isn't using NativeDaemonConnector to connect to mdnsresponder after aosp/2049246, so NsdService#create won't throw InterruptedException. - Also no need to catch InterruptedException in ConnectivityServiceInitializer. Bug: 209894875 Test: atest FrameworksNetTests CtsNetTestCases Merged-In: I1d0b973f9dac0f1d4f9d4d03faef66f05edde3fc Change-Id: I1d0b973f9dac0f1d4f9d4d03faef66f05edde3fc
This commit is contained in:
@@ -600,7 +600,7 @@ public class NsdService extends INsdManager.Stub {
|
||||
mMDnsEventCallback = new MDnsEventCallback(mNsdStateMachine);
|
||||
}
|
||||
|
||||
public static NsdService create(Context context) throws InterruptedException {
|
||||
public static NsdService create(Context context) {
|
||||
HandlerThread thread = new HandlerThread(TAG);
|
||||
thread.start();
|
||||
Handler handler = new Handler(thread.getLooper());
|
||||
|
||||
Reference in New Issue
Block a user