June 26, 20187 yr Error to auto start session with A Simple Login Handler after the connection fell a few seconds. The system initiates session with this API perfectly, but when the connection is dropped and the system is re-established, it does not detect that a user is not logged in and does not perform the auto-login.
June 26, 20187 yr Author 7 hours ago, FrostBug said: Maybe didn't execute the event properly Here as I have the code. LoginEvent loginEvent; @Override public int onLoop() throws InterruptedException{ if(!getClient().isLoggedIn()) { loginEvent = new LoginEvent(usuario,clave); getBot().addLoginListener(loginEvent); execute(loginEvent); }else { doTasks(); } return 1000; } It is assumed that onLoop() is repeated in an interval as indicated in the "return", in this case 1 second.
June 26, 20187 yr 16 minutes ago, trainux said: Here as I have the code. LoginEvent loginEvent; @Override public int onLoop() throws InterruptedException{ if(!getClient().isLoggedIn()) { loginEvent = new LoginEvent(usuario,clave); getBot().addLoginListener(loginEvent); execute(loginEvent); }else { doTasks(); } return 1000; } It is assumed that onLoop() is repeated in an interval as indicated in the "return", in this case 1 second. The login handler seems to pause the ScriptExecutor. This would conflict with the fact that it's also a ResponseCode listener, as the ResponseCode listeners (I believe) are invoked between calls to onLoop (which will not happen when ScriptExecutor is paused). Perhaps it's outdated. Edited June 26, 20187 yr by FrostBug
June 26, 20187 yr Author 54 minutes ago, FrostBug said: The login handler seems to pause the ScriptExecutor. This would conflict with the fact that it's also a ResponseCode listener, as the ResponseCode listeners (I believe) are invoked between calls to onLoop (which will not happen when ScriptExecutor is paused). Perhaps it's outdated. any solution?
Create an account or sign in to comment