Fix tab bug and initial one-second delay

This commit is contained in:
Keith Winstein
2011-08-14 00:26:13 -04:00
parent e56b8943f9
commit 549a3c3393
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -74,7 +74,8 @@ void Transport<MyState, RemoteState>::send_to_receiver( void )
if ( diff.empty() ) {
/* send empty ack */
if ( (!connection.pending_timestamp())
&& (timestamp() - sent_states.back().timestamp < int64_t( ACK_INTERVAL )) ) {
&& (timestamp() - sent_states.back().timestamp < int64_t( ACK_INTERVAL ))
&& (sent_states.back().num > 0) ) {
return;
}