react-native-zeroconf 0.13.7 → 0.13.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -52,7 +52,7 @@ public class ZeroconfModule extends ReactContextBaseJavaModule {
|
|
|
52
52
|
public void scan(String type, String protocol, String domain, String implType) {
|
|
53
53
|
try {
|
|
54
54
|
getZeroconfImpl(implType).scan(type, protocol, domain);
|
|
55
|
-
} catch (
|
|
55
|
+
} catch (Throwable e) {
|
|
56
56
|
Log.e(getClass().getName(), e.getMessage(), e);
|
|
57
57
|
sendEvent(getReactApplicationContext(), ZeroconfModule.EVENT_ERROR, "Exception During Scan: " + e.getMessage());
|
|
58
58
|
}
|
|
@@ -62,7 +62,7 @@ public class ZeroconfModule extends ReactContextBaseJavaModule {
|
|
|
62
62
|
public void stop(String implType) {
|
|
63
63
|
try {
|
|
64
64
|
getZeroconfImpl(implType).stop();
|
|
65
|
-
} catch (
|
|
65
|
+
} catch (Throwable e) {
|
|
66
66
|
Log.e(getClass().getName(), e.getMessage(), e);
|
|
67
67
|
sendEvent(getReactApplicationContext(), ZeroconfModule.EVENT_ERROR, "Exception During Stop: " + e.getMessage());
|
|
68
68
|
}
|
|
@@ -76,7 +76,7 @@ public class ZeroconfModule extends ReactContextBaseJavaModule {
|
|
|
76
76
|
public void registerService(String type, String protocol, String domain, String name, int port, ReadableMap txt, String implType) {
|
|
77
77
|
try {
|
|
78
78
|
getZeroconfImpl(implType).registerService(type, protocol, domain, name, port, txt);
|
|
79
|
-
} catch (
|
|
79
|
+
} catch (Throwable e) {
|
|
80
80
|
Log.e(getClass().getName(), e.getMessage(), e);
|
|
81
81
|
sendEvent(getReactApplicationContext(), ZeroconfModule.EVENT_ERROR, "Exception During Register Service: " + e.getMessage());
|
|
82
82
|
}
|
|
@@ -86,7 +86,7 @@ public class ZeroconfModule extends ReactContextBaseJavaModule {
|
|
|
86
86
|
public void unregisterService(String serviceName, String implType) {
|
|
87
87
|
try {
|
|
88
88
|
getZeroconfImpl(implType).unregisterService(serviceName);
|
|
89
|
-
} catch (
|
|
89
|
+
} catch (Throwable e) {
|
|
90
90
|
Log.e(getClass().getName(), e.getMessage(), e);
|
|
91
91
|
sendEvent(getReactApplicationContext(), ZeroconfModule.EVENT_ERROR, "Exception During Unregister Service: " + e.getMessage());
|
|
92
92
|
}
|
|
@@ -106,7 +106,7 @@ public class ZeroconfModule extends ReactContextBaseJavaModule {
|
|
|
106
106
|
try {
|
|
107
107
|
stop(ZeroConfImplFactory.NSD_IMPL);
|
|
108
108
|
stop(ZeroConfImplFactory.DNSSD_IMPL);
|
|
109
|
-
} catch (
|
|
109
|
+
} catch (Throwable e) {
|
|
110
110
|
Log.e(getClass().getName(), e.getMessage(), e);
|
|
111
111
|
sendEvent(getReactApplicationContext(), ZeroconfModule.EVENT_ERROR, "Exception During Catalyst Destroy: " + e.getMessage());
|
|
112
112
|
}
|