This commit is contained in:
zzz
2018-02-21 21:34:29 +00:00
parent 4b1a357ee7
commit 237447180c

View File

@@ -252,13 +252,11 @@ public class SingleFileNamingService extends NamingService {
if (options != null)
writeOptions(options, out);
out.write('\n');
out.close();
for (NamingServiceListener nsl : _listeners) {
nsl.entryAdded(this, hostname, d, options);
}
return true;
} catch (IOException ioe) {
if (out != null) try { out.close(); } catch (IOException e) {}
_log.error("Error adding " + hostname, ioe);
return false;
} finally {