From 5969189b9063e0f400c87f40bd6b9b2023658325 Mon Sep 17 00:00:00 2001 From: Miguel Carvalho Date: Tue, 7 Jan 2025 12:49:55 +0000 Subject: [PATCH] events/NeptusEvents: Created unregister method with single argument. --- src/java/pt/lsts/neptus/events/NeptusEvents.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/java/pt/lsts/neptus/events/NeptusEvents.java b/src/java/pt/lsts/neptus/events/NeptusEvents.java index c93a6bd03b..919084a2c6 100644 --- a/src/java/pt/lsts/neptus/events/NeptusEvents.java +++ b/src/java/pt/lsts/neptus/events/NeptusEvents.java @@ -161,6 +161,15 @@ public static void register(Object object, ConsoleLayout console) { } } + /** + * Unregister for the GLOBAL synchronous event bus + * + * @param object + */ + public static void unregister(Object object) { + INSTANCE.eventBus.unregister(object); + } + /** * Unregister for the given console asynchronous event bus *