fixed NPE in case of abnormal shutdown

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31436 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-05-27 17:10:49 +00:00
1 parent 685ee99148
commit 7d3745cdef
1 file changed
+4 -1
+4 -1
View File
@@ -45,7 +45,10 @@ public class DNSMultiCast implements Closeable {
}
public void close() {
jmdns.close();
if (jmdns!=null) {
jmdns.close();
jmdns = null;
}
}
private static final Logger LOGGER = Logger.getLogger(DNSMultiCast.class.getName());