Closed a possible resource leak, updated README.md to point to DBO instead of Github's deprecated downloads section
This commit is contained in:
1 parent
31faf605dc
commit
d9ca9c62cb
3 files changed
+2
-2
No files matched your search
@@ -94,6 +94,7 @@ public class DiscUtil
|
||||
ReadableByteChannel rbc = Channels.newChannel(url.openStream());
|
||||
FileOutputStream fos = new FileOutputStream(file);
|
||||
fos.getChannel().transferFrom(rbc, 0, 1 << 24);
|
||||
fos.close();
|
||||
return true;
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
Reference in new issue
Block a user