mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 04:22:01 -08:00
closed resources in savegame method of gamecontroller
This commit is contained in:
parent
4bc5a9bd61
commit
532a190587
2 changed files with 22 additions and 6 deletions
|
|
@ -18,4 +18,13 @@ public final class StreamUtils {
|
|||
}
|
||||
}
|
||||
|
||||
public static void closeQuietly(AutoCloseable ac) {
|
||||
if (ac != null) {
|
||||
try {
|
||||
ac.close();
|
||||
}
|
||||
catch (Exception e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue