Example #1
0
 @Override
 protected void onDisconnect() {
     while (!isConnected()) {
         try {
             reconnect();
             joinChannel("#jenkins");
         } catch (Exception e) {
             e.printStackTrace();
             try {
                 Thread.sleep(3000);
             } catch (InterruptedException _) {
                 return; // abort
             }
         }
     }
 }