mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Close guacamole.properties when done.
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user