pause to give a chance to the event to propagate

pull/34/head
Zlatin Balevsky 2019-12-13 13:10:11 +00:00
parent fc9114eaa5
commit e8dd7d710d
1 changed files with 3 additions and 0 deletions

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")) {