actually this line
@congestion_check_time = Time.now.to_i
should come after the while look and not before
mind adding this change to this PR?