[connectionagent] fix connecting after flight mode work better