mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 08:50: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) {
|
||||
if (this.flagRequestCallback != null) return false;
|
||||
this.flagRequestCallback = flagRequestCallback;
|
||||
return true;
|
||||
try {
|
||||
writeToStream(new HPacket(NetworkExtensionInfo.INCOMING_MESSAGES_IDS.REQUESTFLAGS).toBytes());
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user