mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 17:00:52 +01:00
when you don't test irrelevant code
This commit is contained in:
parent
b31b3d6526
commit
cb32a9b442
@ -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;
|
||||||
|
try {
|
||||||
|
writeToStream(new HPacket(NetworkExtensionInfo.INCOMING_MESSAGES_IDS.REQUESTFLAGS).toBytes());
|
||||||
return true;
|
return true;
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user