From cbdef8e67440061bf85a0154b3230442804557aa Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 17 Apr 2021 22:12:35 +0200 Subject: [PATCH] Improved exception management about connection. --- src/org/april/hebdobot/bot/Hebdobot.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/april/hebdobot/bot/Hebdobot.java b/src/org/april/hebdobot/bot/Hebdobot.java index c8ec3d9..37cb2b0 100644 --- a/src/org/april/hebdobot/bot/Hebdobot.java +++ b/src/org/april/hebdobot/bot/Hebdobot.java @@ -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)