[enh] Reconnection delay must reset after a success

This commit is contained in:
2019-05-28 18:46:22 +02:00
parent 4b4c5807b5
commit 3f0321a94a

View File

@@ -37,6 +37,9 @@ export async function processHandler(
await onRestartSuccess(connection) await onRestartSuccess(connection)
} }
// We reset the delay of reconnection
i = 0
await connection.closed await connection.closed
} catch (e) { } catch (e) {