when you don't test irrelevant code

This commit is contained in:
sirjonasxx 2020-10-07 00:05:09 +02:00
parent b31b3d6526
commit cb32a9b442

View File

@ -298,7 +298,13 @@ public abstract class Extension implements IExtension {
public boolean requestFlags(FlagsCheckListener flagRequestCallback) { public boolean requestFlags(FlagsCheckListener flagRequestCallback) {
if (this.flagRequestCallback != null) return false; if (this.flagRequestCallback != null) return false;
this.flagRequestCallback = flagRequestCallback; this.flagRequestCallback = flagRequestCallback;
return true; try {
writeToStream(new HPacket(NetworkExtensionInfo.INCOMING_MESSAGES_IDS.REQUESTFLAGS).toBytes());
return true;
} catch (IOException e) {
e.printStackTrace();
return false;
}
} }