Ensure that checkforcongestion() does not loop excessively
