Fix bug in #reconnect() when disconnected.