mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-12-25 12:31:57 +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