Fix an incorrect tracing message.

This commit is contained in:
whitequark 2017-03-05 03:16:15 +00:00
parent 9905b3de86
commit e36e05905c
1 changed files with 1 additions and 1 deletions

View File

@ -888,7 +888,7 @@ impl<'a> TcpSocket<'a> {
repr.control = TcpControl::Syn;
net_trace!("[{}]{}:{}: sending SYN{}",
self.debug_id, self.local_endpoint, self.remote_endpoint,
if repr.ack_number.is_some() { "|ACK" } else { "" });
if self.state == State::SynReceived { "|ACK" } else { "" });
should_send = true;
}