mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
These must be called in the reverse order we open them
This commit is contained in:
parent
b893e86f3c
commit
a728d1f9c8
@ -261,18 +261,18 @@ public class HashChunkletManager implements ChunkletManager {
|
|||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
if (fileOut != null) {
|
if (objOut != null) {
|
||||||
try {
|
try {
|
||||||
fileOut.close();
|
objOut.close();
|
||||||
}
|
}
|
||||||
catch (IOException ex) {
|
catch (IOException ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (objOut != null) {
|
if (fileOut != null) {
|
||||||
try {
|
try {
|
||||||
objOut.close();
|
fileOut.close();
|
||||||
}
|
}
|
||||||
catch (IOException ex) {
|
catch (IOException ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
@ -318,15 +318,6 @@ public class HashChunkletManager implements ChunkletManager {
|
|||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
if (fileIn != null) {
|
|
||||||
try {
|
|
||||||
fileIn.close();
|
|
||||||
}
|
|
||||||
catch (IOException ex) {
|
|
||||||
ex.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (objIn != null) {
|
if (objIn != null) {
|
||||||
try {
|
try {
|
||||||
objIn.close();
|
objIn.close();
|
||||||
@ -335,6 +326,15 @@ public class HashChunkletManager implements ChunkletManager {
|
|||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fileIn != null) {
|
||||||
|
try {
|
||||||
|
fileIn.close();
|
||||||
|
}
|
||||||
|
catch (IOException ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return storeIn;
|
return storeIn;
|
||||||
|
Loading…
Reference in New Issue
Block a user