mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 11:38:26 +01:00
Experimental change to use less memory for sockets - may break player NPCs
This commit is contained in:
parent
90e5b4b2d9
commit
52e393b44b
@ -10,11 +10,13 @@ public class EmptySocket extends Socket {
|
||||
|
||||
@Override
|
||||
public InputStream getInputStream() {
|
||||
return new ByteArrayInputStream(new byte[10]);
|
||||
return new ByteArrayInputStream(EMPTY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OutputStream getOutputStream() {
|
||||
return new ByteArrayOutputStream();
|
||||
return new ByteArrayOutputStream(1);
|
||||
}
|
||||
|
||||
private static final byte[] EMPTY = new byte[0];
|
||||
}
|
Loading…
Reference in New Issue
Block a user