Fix hang during auto reconnect