adc Posted June 15, 2014 Share Posted June 15, 2014 Simple question; How can I (if possible) override or otherwise cancel the login random even handler? I'd like to make my script both log out and stop the script, but as it stands the login handler kicks in before stop() is ever called, giving me a recursive loop of logging in and out. Link to comment Share on other sites More sharing options...
thepecher Posted June 15, 2014 Share Posted June 15, 2014 I think it shouldn't do that. Post the code Link to comment Share on other sites More sharing options...
adc Posted June 15, 2014 Author Share Posted June 15, 2014 (edited) I think it shouldn't do that. Post the code logoutTab.logOut(); this.stop(); It successfully logs out and then immediately activates the randomEvenHandler for login... Also, I've solved my own problem public void onExit() throws InterruptedException { logoutTab.logOut(); } and have realized I'm an idiot Edited June 15, 2014 by adc Link to comment Share on other sites More sharing options...
thepecher Posted June 15, 2014 Share Posted June 15, 2014 Also, I've solved my own problem and have realized I'm an idiot The 2 best lines to improve 1 Link to comment Share on other sites More sharing options...