mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
I should read javadoc properly.
This commit is contained in:
parent
5174b6fe93
commit
7a96fd1dce
1 changed files with 1 additions and 10 deletions
|
@ -124,16 +124,7 @@ public class EssentialsConf extends YamlConfiguration
|
|||
channel.position(0);
|
||||
try
|
||||
{
|
||||
int BUFFERSIZE = 1024;
|
||||
long left = configFile.length() % BUFFERSIZE;
|
||||
for (long i = 0; i < configFile.length() - left; i += BUFFERSIZE)
|
||||
{
|
||||
channel.read(buffer, BUFFERSIZE);
|
||||
}
|
||||
if (left > 0)
|
||||
{
|
||||
channel.read(buffer, left);
|
||||
}
|
||||
channel.read(buffer);
|
||||
retry = 0;
|
||||
}
|
||||
catch (ClosedByInterruptException ex)
|
||||
|
|
Loading…
Reference in a new issue