Diagnosis of a transmission main by means of transients caused by a pump switch-off