Close guacamole.properties when done.

This commit is contained in:
Michael Jumper
2012-03-26 12:33:36 -07:00
parent 13d82c6a38
commit 5027be97bc

View File

@@ -87,7 +87,9 @@ public class GuacamoleProperties {
if (stream == null) if (stream == null)
throw new IOException("Resource /guacamole.properties not found."); throw new IOException("Resource /guacamole.properties not found.");
properties.load(stream); // Load properties, always close stream
try { properties.load(stream); }
finally { stream.close(); }
} }
catch (IOException e) { catch (IOException e) {