mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-28 23:51:07 +03:00
Use fallback codec if first frame fails (#9242)
* Both encoding and decoding use fallback if first frame fails * More aggresive max fail counter * Update hwcodec, add judgement when length of the encoded data is zero, https://github.com/rustdesk/rustdesk-server-pro/discussions/382#discussioncomment-10525997 * Fix serde hwcodec config toml fails when the non-first vec![] is empty, https://github.com/toml-rs/toml-rs/issues/384, the config file is used for cache, when check process is not finished, the cache is used. * Allow cm not start for pro user Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -1670,9 +1670,11 @@ impl Connection {
|
||||
.await
|
||||
{
|
||||
log::error!("ipc to connection manager exit: {}", err);
|
||||
// https://github.com/rustdesk/rustdesk-server-pro/discussions/382#discussioncomment-10525725, cm may start failed
|
||||
#[cfg(windows)]
|
||||
if !crate::platform::is_prelogin()
|
||||
&& !err.to_string().contains(crate::platform::EXPLORER_EXE)
|
||||
&& !crate::hbbs_http::sync::is_pro()
|
||||
{
|
||||
allow_err!(tx_from_cm_clone.send(Data::CmErr(err.to_string())));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user