Browse Source

Fix an incorrect tracing message.

whitequark 8 years ago
parent
commit
11c875160a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/socket/tcp.rs

+ 1 - 1
src/socket/tcp.rs

@@ -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;
             }