mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix: previous session.close read&write error
Signed-off-by: Kingtous <kingtous@qq.com>
This commit is contained in:
@@ -133,6 +133,7 @@ pub fn session_close(id: String) {
|
||||
if let Some(session) = SESSIONS.read().unwrap().get(&id) {
|
||||
session.close();
|
||||
}
|
||||
let _ = SESSIONS.write().unwrap().remove(&id);
|
||||
}
|
||||
|
||||
pub fn session_refresh(id: String) {
|
||||
|
||||
Reference in New Issue
Block a user