We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff56fd1 commit 9ff74fdCopy full SHA for 9ff74fd
dsserver/src/server.rs
@@ -82,10 +82,18 @@ pub fn run(port: u16, pwd: String) {
82
}
83
let ss = stream.try_clone().unwrap();
84
let th1 = std::thread::spawn(move || {
85
- screen_stream(ss);
+ if let Err(e) = std::panic::catch_unwind(||{
86
+ screen_stream(ss);
87
+ }) {
88
+ eprintln!("{:?}", e);
89
+ }
90
});
91
let th2 = std::thread::spawn(move || {
- event(stream);
92
93
+ event(stream);
94
95
96
97
98
th1.join().unwrap();
99
th2.join().unwrap();
0 commit comments