Swap reconnect parameters

Fixes a bug where it would use the max retries for the delay time and
vise-versa.