From 3132d2c7cf70c6e159bdd6ac5c7f6d24f2d8323a Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 29 Apr 2013 18:53:16 +1000 Subject: [PATCH] Increment intent counter --- api/src/main/java/net/md_5/bungee/api/event/AsyncEvent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/net/md_5/bungee/api/event/AsyncEvent.java b/api/src/main/java/net/md_5/bungee/api/event/AsyncEvent.java index 001064a8..4c90ffac 100644 --- a/api/src/main/java/net/md_5/bungee/api/event/AsyncEvent.java +++ b/api/src/main/java/net/md_5/bungee/api/event/AsyncEvent.java @@ -53,13 +53,14 @@ public class AsyncEvent extends Event Preconditions.checkState( !intents.contains( plugin ), "Plugin %s already registered intent for event %s", plugin, this ); intents.add( plugin ); + latch.incrementAndGet(); } /** * Notifies this event that this plugin has done all its required processing * and wishes to let the event proceed. * - * @param plugin a plugin which has an intent registered for this evemt + * @param plugin a plugin which has an intent registered for this event */ @SuppressWarnings("unchecked") public void completeIntent(Plugin plugin)