Fix stack overflow in flag methods.

This commit is contained in:
Steveice10 2020-05-30 15:38:24 -07:00
parent be70b05e3c
commit 72bde6a3c0

View file

@ -32,19 +32,9 @@ public class TcpServerSession extends TcpSession {
return this.server.hasGlobalFlag(key);
}
@Override
public <T> T getFlag(String key) {
T ret = super.getFlag(key);
if(ret != null) {
return ret;
}
return this.server.getGlobalFlag(key);
}
@Override
public <T> T getFlag(String key, T def) {
T ret = super.getFlag(key);
T ret = super.getFlag(key, null);
if(ret != null) {
return ret;
}