Improved exception management about connection.
This commit is contained in:
parent
483732382b
commit
cbdef8e674
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user