mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-28 08:50:02 +02:00
I should read javadoc properly.
This commit is contained in:
@@ -124,16 +124,7 @@ public class EssentialsConf extends YamlConfiguration
|
|||||||
channel.position(0);
|
channel.position(0);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
int BUFFERSIZE = 1024;
|
channel.read(buffer);
|
||||||
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);
|
|
||||||
}
|
|
||||||
retry = 0;
|
retry = 0;
|
||||||
}
|
}
|
||||||
catch (ClosedByInterruptException ex)
|
catch (ClosedByInterruptException ex)
|
||||||
|
Reference in New Issue
Block a user