Fix off-by-one error on timeouts for input history echo updates
This commit is contained in:
@@ -142,7 +142,7 @@ bool Complete::set_echo_ack( uint64_t now )
|
|||||||
for ( input_history_type::const_iterator i = input_history.begin();
|
for ( input_history_type::const_iterator i = input_history.begin();
|
||||||
i != input_history.end();
|
i != input_history.end();
|
||||||
i++ ) {
|
i++ ) {
|
||||||
if ( i->second < now - ECHO_TIMEOUT ) {
|
if ( i->second <= now - ECHO_TIMEOUT ) {
|
||||||
newest_echo_ack = i->first;
|
newest_echo_ack = i->first;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user