Reset the reconnection schedule on successful reconnect.

The schedule for reconnections is cumulative across multiple failures. It should generate a new schedule after any successful connection.

I've included a simple change that updates the schedule every time the client connects.