Close guacamole.properties when done.
This commit is contained in:
1 parent
13d82c6a38
commit
5027be97bc
1 file changed
+3
-1
+3
-1
@@ -87,7 +87,9 @@ public class GuacamoleProperties {
|
||||
if (stream == null)
|
||||
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) {
|
||||
|
||||
Reference in new issue
Block a user