mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
set event stream to None in rust side
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -134,6 +134,14 @@ impl FlutterHandler {
|
||||
stream.add(EventToUI::Event(out));
|
||||
}
|
||||
}
|
||||
|
||||
pub fn close_event_stream(&mut self) {
|
||||
let mut stream_lock = self.event_stream.write().unwrap();
|
||||
if let Some(stream) = &*stream_lock {
|
||||
stream.add(EventToUI::Event("close".to_owned()));
|
||||
}
|
||||
*stream_lock = None;
|
||||
}
|
||||
}
|
||||
|
||||
impl InvokeUiSession for FlutterHandler {
|
||||
|
||||
Reference in New Issue
Block a user