From 184154a8b355a93513403a0920cf98891b719fc9 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 16 Jun 2013 07:26:29 +1000 Subject: [PATCH] Close issue #437 --- api/src/main/java/net/md_5/bungee/api/event/AsyncEvent.java | 2 +- 1 file changed, 1 insertion(+), 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 4c90ffacc..c35df7b62 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 @@ -67,7 +67,7 @@ public class AsyncEvent extends Event { Preconditions.checkState( intents.contains( plugin ), "Plugin %s has not registered intent for event %s", plugin, this ); intents.remove( plugin ); - if ( latch.decrementAndGet() == 0 ) + if ( fired.get() && latch.decrementAndGet() == 0 ) { done.done( (T) this, null ); }