fix timeout infinite loop

when last packet gets dropped