oops, fix a compile error. also try adding a flush()...this only made things worse??

This commit is contained in:
bunnie 2022-05-13 02:25:35 +08:00
parent 56f9c654c0
commit b470588285
2 changed files with 2 additions and 1 deletions

View file

@ -263,7 +263,7 @@ pub(crate) fn std_tcp_peek(
pub(crate) fn std_tcp_can_close(tx_waiting: &Vec<Option<WaitingSocket>>, handle: SocketHandle) -> bool {
for maybe_socket in tx_waiting.iter() {
if let Some(socket) = maybe_socket {
if socket.handle.0 == handle.0 {
if socket.handle == handle {
return false
}
}

View file

@ -181,6 +181,7 @@ impl<'a> ShellCmdApi<'a> for NetCmd {
}
count += 1;
if count == 10 {
stream.flush().unwrap();
break;
}
}