<1.0.1> Fix rare memleak in EaglerXVelocity's HttpWebServer
This commit is contained in:
parent
d02938c5f8
commit
322e653ca9
Binary file not shown.
|
@ -17,13 +17,13 @@ package net.lax1dude.eaglercraft.v1_8.plugin.gateway_velocity;
|
||||||
*/
|
*/
|
||||||
public class EaglerXVelocityVersion {
|
public class EaglerXVelocityVersion {
|
||||||
|
|
||||||
public static final String NATIVE_VELOCITY_BUILD = "3.3.0-SNAPSHOT:afd8b55:b390";
|
public static final String NATIVE_VELOCITY_BUILD = "3.3.0-SNAPSHOT:1c36b66d:b394";
|
||||||
|
|
||||||
public static final String ID = "EaglerXVelocity";
|
public static final String ID = "EaglerXVelocity";
|
||||||
public static final String PLUGIN_ID = "eaglerxvelocity";
|
public static final String PLUGIN_ID = "eaglerxvelocity";
|
||||||
public static final String NAME = "EaglercraftXVelocity";
|
public static final String NAME = "EaglercraftXVelocity";
|
||||||
public static final String DESCRIPTION = "Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks";
|
public static final String DESCRIPTION = "Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks";
|
||||||
public static final String VERSION = "1.0.0";
|
public static final String VERSION = "1.0.1";
|
||||||
public static final String[] AUTHORS = new String[] { "lax1dude", "ayunami2000" };
|
public static final String[] AUTHORS = new String[] { "lax1dude", "ayunami2000" };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,6 +220,7 @@ public class HttpWebServer {
|
||||||
if(lastMod != file.lastDiskModified) {
|
if(lastMod != file.lastDiskModified) {
|
||||||
int fileSize = (int)f.length();
|
int fileSize = (int)f.length();
|
||||||
try(FileInputStream is = new FileInputStream(f)) {
|
try(FileInputStream is = new FileInputStream(f)) {
|
||||||
|
file.fileData.release();
|
||||||
file.fileData = Unpooled.buffer(fileSize, fileSize);
|
file.fileData = Unpooled.buffer(fileSize, fileSize);
|
||||||
file.fileData.writeBytes(is, fileSize);
|
file.fileData.writeBytes(is, fileSize);
|
||||||
file.lastDiskReload = millis;
|
file.lastDiskReload = millis;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"id":"eaglerxvelocity","name":"EaglercraftXVelocity","version":"1.0.0","description":"Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks","authors":["lax1dude", "ayunami2000"],"dependencies":[],"main":"net.lax1dude.eaglercraft.v1_8.plugin.gateway_velocity.EaglerXVelocity"}
|
{"id":"eaglerxvelocity","name":"EaglercraftXVelocity","version":"1.0.1","description":"Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks","authors":["lax1dude", "ayunami2000"],"dependencies":[],"main":"net.lax1dude.eaglercraft.v1_8.plugin.gateway_velocity.EaglerXVelocity"}
|
|
@ -1 +1 @@
|
||||||
1.0.0
|
1.0.1
|
Loading…
Reference in New Issue
Block a user