pause to give a chance to the event to propagate

This commit is contained in:
Zlatin Balevsky
2019-12-13 13:10:11 +00:00
parent fc9114eaa5
commit e8dd7d710d

View File

@@ -197,6 +197,9 @@ public class TrustServlet extends HttpServlet {
event.setPersona(p);
event.setSubscribe(false);
core.getEventBus().publish(event);
try {
Thread.sleep(100);
} catch (InterruptedException e) {}
} else if (action.equals("trust")) {
doTrust(p, TrustLevel.TRUSTED, req.getParameter("reason"));
} else if (action.equals("neutral")) {