fix: its the same
This commit is contained in:
parent
91a27355a9
commit
d08fe070d9
|
@ -46,7 +46,7 @@ impl UdpHandle {
|
||||||
payload: Vec<u8>,
|
payload: Vec<u8>,
|
||||||
) -> Result<(), VoiceUdpError> {
|
) -> Result<(), VoiceUdpError> {
|
||||||
let voice_ready_data_result = self.data.read().await.ready_data.clone();
|
let voice_ready_data_result = self.data.read().await.ready_data.clone();
|
||||||
if let None = voice_ready_data_result {
|
if voice_ready_data_result.is_none() {
|
||||||
return Err(VoiceUdpError::NoData);
|
return Err(VoiceUdpError::NoData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue