If tokio::select! returns an error, return it
[?]
Dec 9, 2020, 3:23 PM
432ETREANWLRALMXK2WRMGRYET2SIGPAZ2WWT3WEVDUOGA4F3PNACDependencies
- [2]
KNLLUDOICorrect usage of `tokio::select!` - [3]
7FRJYUI6Reboot because of a bad change - [4]
V3BRP7LQAvoid polling the reading future again after disconnection
Change contents
- replacement in thrussh/src/server/mod.rs at line 495
Ok((_, stream_read, buffer)) = &mut reading => {r = &mut reading => {let (stream_read, buffer) = match r {Ok((_, stream_read, buffer)) => (stream_read, buffer),Err(e) => return Err(e)}; - replacement in thrussh/src/client/mod.rs at line 843
Ok((_, stream_read, buffer)) = &mut reading => {r = &mut reading => {let (stream_read, buffer) = match r {Ok((_, stream_read, buffer)) => (stream_read, buffer),Err(e) => return Err(e)};