From 6428dfd723e64730d0d462bc0917e9d7f75bd880 Mon Sep 17 00:00:00 2001 From: cnr Date: Tue, 12 Apr 2016 22:54:20 -0500 Subject: [PATCH] Run clan-load callbacks on the main thread This prevents potential CMEs from occurring when a player transfers his/her clan to another server --- .../src/mineplex/game/clans/clans/ClansDataAccessLayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/ClansDataAccessLayer.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/ClansDataAccessLayer.java index b5cb35043..f92282c73 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/ClansDataAccessLayer.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/ClansDataAccessLayer.java @@ -806,7 +806,7 @@ public class ClansDataAccessLayer public void run() { ClanToken clan = _repository.retrieveClan(clanName); - callback.run(clan); + runSync(() -> callback.run(clan)); } }); }