Skip to content

Commit

Permalink
Don't async-process non-async things
Browse files Browse the repository at this point in the history
Purely theoretical work
  • Loading branch information
mcmonkey4eva committed Jul 19, 2015
1 parent fa65d0d commit 2fa6d26
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ public void asyncChatTrigger(final AsyncPlayerChatEvent event) {
// Return if "Use asynchronous event" is false in config file
if (!Settings.chatAsynchronous()) return;

if (!event.isAsynchronous()) {
syncChatTrigger(new PlayerChatEvent(event.getPlayer(), event.getMessage(), event.getFormat(), event.getRecipients()));
return;
}
FutureTask<ChatContext> futureTask = new FutureTask<ChatContext>(new Callable<ChatContext>() {
@Override
public ChatContext call() {
Expand Down

0 comments on commit 2fa6d26

Please sign in to comment.