Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after call "create_answer", keep block. #572

Closed
dxh-sc opened this issue May 16, 2024 · 1 comment
Closed

after call "create_answer", keep block. #572

dxh-sc opened this issue May 16, 2024 · 1 comment

Comments

@dxh-sc
Copy link

dxh-sc commented May 16, 2024

i faced a strange problem, the code like this

let offer = RTCSessionDescription::offer(offer_str.to_string());
            if offer.is_err() {
                log::error!("offer error: {:?}", offer);
                return Err("offer error".to_string());
            }
            let offer = offer.unwrap();
            let re = pcc.set_remote_description(offer).await;
            if re.is_err() {
                log::error!("set remote description error: {:?}", re);
                return Err("set remote description error".to_string());
            }

            log::info!("set remote description success");

            let answer = pcc.create_answer(None).await;
            if answer.is_err() {
                log::error!("create answer error: {:?}", answer);
                return Err("create answer error".to_string());
            }
            let answer = answer.unwrap();
            let answer_str = serde_json::to_string(&answer).unwrap();
            log::info!("answer: {}", answer_str);

it will block create_answer method, will don't excute next line code.

this is the log
image

there have something case the issue?

@dxh-sc dxh-sc closed this as completed May 22, 2024
@dxh-sc
Copy link
Author

dxh-sc commented May 22, 2024

found the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant