From cb32a9b44247e8e472cfc0ee2875448d917a57de Mon Sep 17 00:00:00 2001 From: sirjonasxx <36828922+sirjonasxx@users.noreply.github.com> Date: Wed, 7 Oct 2020 00:05:09 +0200 Subject: [PATCH] when you don't test irrelevant code --- G-Earth/src/main/java/gearth/extensions/Extension.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/G-Earth/src/main/java/gearth/extensions/Extension.java b/G-Earth/src/main/java/gearth/extensions/Extension.java index 5078c47..89d668f 100644 --- a/G-Earth/src/main/java/gearth/extensions/Extension.java +++ b/G-Earth/src/main/java/gearth/extensions/Extension.java @@ -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; + } }