def on_handled_loop_exception(self, e: IrcConnException) -> None:
'On …AbortException, call .close(), on …Timeout… first (!) try PING.'
if isinstance(e, IrcConnAbortException):
+ self._retry_connect_in_s = 1
self.db.connection_state = f'broken: {e}'
self.close()
elif isinstance(e, IrcConnTimeoutException):
if self._expected_pong:
- self._retry_connect_in_s = 1
self.on_handled_loop_exception(
IrcConnAbortException('no timely PONG from server'))
else:
# check that (save TUI tests assuming start on window 0, and no 4 yet) on reconnect, all the same effects can be expected
> /reconnect
-repeat conn0 conn1
+9 .!$ will retry connecting in 1 seconds
+1 ..$ connection_state set to: [connecting]
+1 ..$ connection_state set to: [connected]
2,3,4,5,6,7 ..$ CONNECTED
repeat conn2 conn3
1 ..> JOIN :#testtest