Advertisement
Mattie

Untitled

Dec 17th, 2010
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1.     public void run()
  2.     {
  3.         while (true)
  4.         {
  5.             try
  6.             {
  7.                 if (con.isClosed() || stmt.isClosed())
  8.                 {
  9. //                  activateDBconnection();
  10.                     errorcount++;
  11.                     if (errorcount % 10 == 0)
  12.                     {
  13.                         bot.send1337Message("#bottest", "OOPS ER ZIJN AL " + errorcount + " CONNECTIE ERRORS: MISS FAILT ER IETS?");
  14.                     }
  15.                 }
  16.             } catch (SQLException e1)
  17.             {
  18.  
  19.                 e1.printStackTrace();
  20.             }
  21.             try
  22.             {
  23.                 Thread.sleep(1000);
  24.             } catch (InterruptedException e)
  25.             {
  26.  
  27.                 e.printStackTrace();
  28.             }
  29.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement