Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void run()
- {
- while (true)
- {
- try
- {
- if (con.isClosed() || stmt.isClosed())
- {
- // activateDBconnection();
- errorcount++;
- if (errorcount % 10 == 0)
- {
- bot.send1337Message("#bottest", "OOPS ER ZIJN AL " + errorcount + " CONNECTIE ERRORS: MISS FAILT ER IETS?");
- }
- }
- } catch (SQLException e1)
- {
- e1.printStackTrace();
- }
- try
- {
- Thread.sleep(1000);
- } catch (InterruptedException e)
- {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement