We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52c829f commit 8363831Copy full SHA for 8363831
arduino-core/src/cc/arduino/packages/discoverers/NetworkDiscovery.java
@@ -153,7 +153,9 @@ public void start() {
153
154
@Override
155
public void stop() {
156
- jmdns.unregisterAllServices();
+ if (jmdns != null) {
157
+ jmdns.unregisterAllServices();
158
+ }
159
// we don't close the JmmDNS instance as it's too slow
160
/*
161
try {
@@ -162,7 +164,9 @@ public void stop() {
162
164
e.printStackTrace();
163
165
}
166
*/
- reachabilityTimer.cancel();
167
+ if (reachabilityTimer != null) {
168
+ reachabilityTimer.cancel();
169
170
171
172
0 commit comments