diff --git a/archive/src/main/kotlin/org/openrs2/archive/cache/Js5ChannelHandler.kt b/archive/src/main/kotlin/org/openrs2/archive/cache/Js5ChannelHandler.kt index f922c5b8..ad0abaad 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/cache/Js5ChannelHandler.kt +++ b/archive/src/main/kotlin/org/openrs2/archive/cache/Js5ChannelHandler.kt @@ -254,6 +254,12 @@ public abstract class Js5ChannelHandler( continuation.resume(Unit) ctx.close() + } else { + /* + * Reset the number of reconnection attempts as we are making + * progress. + */ + reconnectionAttempts = 0 } }