1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-04-05 11:16:24 +02:00

These must be called in the reverse order we open them

This commit is contained in:
NuclearW 2012-07-06 17:25:53 -04:00
parent b893e86f3c
commit a728d1f9c8

@ -261,18 +261,18 @@ public class HashChunkletManager implements ChunkletManager {
ex.printStackTrace();
}
finally {
if (fileOut != null) {
if (objOut != null) {
try {
fileOut.close();
objOut.close();
}
catch (IOException ex) {
ex.printStackTrace();
}
}
if (objOut != null) {
if (fileOut != null) {
try {
objOut.close();
fileOut.close();
}
catch (IOException ex) {
ex.printStackTrace();
@ -318,18 +318,18 @@ public class HashChunkletManager implements ChunkletManager {
ex.printStackTrace();
}
finally {
if (fileIn != null) {
if (objIn != null) {
try {
fileIn.close();
objIn.close();
}
catch (IOException ex){
ex.printStackTrace();
}
}
if (objIn != null) {
if (fileIn != null) {
try {
objIn.close();
fileIn.close();
}
catch (IOException ex) {
ex.printStackTrace();