diff --git a/src/lib/processHandler.ts b/src/lib/processHandler.ts index a6b85ba..6a4afd9 100644 --- a/src/lib/processHandler.ts +++ b/src/lib/processHandler.ts @@ -37,6 +37,9 @@ export async function processHandler( await onRestartSuccess(connection) } + // We reset the delay of reconnection + i = 0 + await connection.closed } catch (e) {