Improved exception management about connection.

This commit is contained in:
Christian P. MOMON 2021-04-17 22:12:35 +02:00
parent 483732382b
commit cbdef8e674

View File

@ -492,13 +492,14 @@ public class Hebdobot extends PircBot
}
catch (IOException exception)
{
logger.error("IOException during connection ", exception);
try
{
Thread.sleep(60000);
Thread.sleep(200000);
}
catch (InterruptedException subException)
{
subException.printStackTrace();
logger.error("Exception during sleep ", subException);
}
}
catch (IrcException exception)