mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix, reconnect deadlock, introduce connection round control
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -805,7 +805,8 @@ pub fn session_start_(
|
||||
if !is_pre_added {
|
||||
let session = session.clone();
|
||||
std::thread::spawn(move || {
|
||||
io_loop(session);
|
||||
let round = session.connection_round_state.lock().unwrap().new_round();
|
||||
io_loop(session, round);
|
||||
});
|
||||
}
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user