If you find yourself in a situation where you are neither learning or contributing, move somewhere where you can. This is a law like the Law of Gravity. You can choose to notice it or not, but it's safer just to notice it.