浏览代码

Fix an incorrect tracing message.

whitequark 8 年之前
父节点
当前提交
11c875160a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
                 repr.control = TcpControl::Syn;
                 net_trace!("[{}]{}:{}: sending SYN{}",
                 net_trace!("[{}]{}:{}: sending SYN{}",
                            self.debug_id, self.local_endpoint, self.remote_endpoint,
                            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;
                 should_send = true;
             }
             }