Corrected reconnect feature.

It was always enabled even if it was set to 0.