mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-23 23:39:10 +00:00
minor changes
This commit is contained in:
parent
d4568c4676
commit
a54e6ae23e
1 changed files with 1 additions and 1 deletions
|
@ -1063,7 +1063,7 @@ impl<'a> TunToProxy<'a> {
|
|||
return Ok(());
|
||||
}
|
||||
|
||||
if vecbuf.len() == 0 || event.is_read_closed() {
|
||||
if vecbuf.is_empty() || event.is_read_closed() {
|
||||
state.wait_read = false;
|
||||
state.close_state |= SERVER_WRITE_CLOSED;
|
||||
Self::update_mio_socket_interest(&mut self.poll, state)?;
|
||||
|
|
Loading…
Add table
Reference in a new issue