Fix build

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-09-04 02:25:09 +02:00
parent 2c1e3e4323
commit 9353c56460

View File

@ -286,7 +286,7 @@ public class PlayerSocketConnection extends PlayerConnection {
try { try {
if (!waitingBuffer.writeChannel(channel)) break; if (!waitingBuffer.writeChannel(channel)) break;
iterator.remove(); iterator.remove();
POOLED_BUFFERS.add(waitingBuffer); POOLED_BUFFERS.add(new SoftReference<>(waitingBuffer));
} catch (IOException e) { } catch (IOException e) {
final String message = e.getMessage(); final String message = e.getMessage();
if (message == null || if (message == null ||
@ -297,7 +297,7 @@ public class PlayerSocketConnection extends PlayerConnection {
} }
} }
} }
if(shouldDisconnect) disconnect(); if (shouldDisconnect) disconnect();
} }
@Override @Override