1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-27 00:15:23 +02:00

I should read javadoc properly.

This commit is contained in:
snowleo
2012-08-06 00:55:25 +02:00
parent 17ceb04541
commit e9f924e397

View File

@@ -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)