mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
Move FileChannel inside the loop
This commit is contained in:
parent
c6617324af
commit
5174b6fe93
@ -116,11 +116,12 @@ public class EssentialsConf extends YamlConfiguration
|
||||
final FileInputStream inputStream = new FileInputStream(configFile);
|
||||
try
|
||||
{
|
||||
final FileChannel channel = inputStream.getChannel();
|
||||
final ByteBuffer buffer = ByteBuffer.allocate((int)configFile.length());
|
||||
int retry = 0;
|
||||
do
|
||||
{
|
||||
final FileChannel channel = inputStream.getChannel();
|
||||
channel.position(0);
|
||||
try
|
||||
{
|
||||
int BUFFERSIZE = 1024;
|
||||
|
Loading…
Reference in New Issue
Block a user