mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 04:32:15 +00:00
Fix some resources that are never closed, close in a finally block (#3544)
This commit is contained in:
1 parent
e32cc2a607
commit
e9143859c0
13 files changed
+148
-113
No files matched your search
@@ -260,15 +260,7 @@ public class FMLServerHandler implements IFMLSidedHandler
|
||||
finally
|
||||
{
|
||||
IOUtils.closeQuietly(stream);
|
||||
try
|
||||
{
|
||||
if (zip != null)
|
||||
zip.close();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
// shush
|
||||
}
|
||||
IOUtils.closeQuietly(zip);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user