Avoid double-reconnect problem