mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-25 07:06:52 +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) {
|
||||
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(bytes) => header_position += bytes,
|
||||
Err(error) => match error.kind() {
|
||||
|
Loading…
Reference in New Issue
Block a user