mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-22 14:09:16 +01:00
[SC64][SW] Fix buffered receive bug in sc64deployer server
This commit is contained in:
parent
7a83fb3eae
commit
b4b3659458
@ -172,7 +172,7 @@ fn server_stream_thread(
|
|||||||
if exit_flag.load(Ordering::Relaxed) {
|
if exit_flag.load(Ordering::Relaxed) {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
match stream.read(&mut header[header_position..header_length]) {
|
match stream_reader.read(&mut header[header_position..header_length]) {
|
||||||
Ok(0) => return Ok(()),
|
Ok(0) => return Ok(()),
|
||||||
Ok(bytes) => header_position += bytes,
|
Ok(bytes) => header_position += bytes,
|
||||||
Err(error) => match error.kind() {
|
Err(error) => match error.kind() {
|
||||||
|
Loading…
Reference in New Issue
Block a user