fix: messages go to right channels

fix:  ice candidate transfer

fix:  deadlock in server
This commit is contained in:
Ahmet Kaan Gümüş 2025-04-30 18:22:37 +03:00
parent 4a695dce40
commit 53a73285b9
5 changed files with 121 additions and 32 deletions

View file

@ -27,7 +27,7 @@ pub enum Error {
OfferChannelReceive(String),
AnswerChannelReceive(String),
ICECandidateChannelReceive(String),
ICECandidateAdd,
ICECandidateAdd(String),
}
impl std::error::Error for Error {
@ -70,7 +70,7 @@ impl Display for Error {
Error::ICECandidateChannelReceive(recv_error) => {
write!(f, "ICE Candidate Channel Receive | {}", recv_error)
}
Error::ICECandidateAdd => write!(f, "ICE Candidate Add"),
Error::ICECandidateAdd(err_val) => write!(f, "ICE Candidate Add | {}", err_val),
}
}
}