Which is worse; sleeping while…

Which is worse; sleeping while walking, or walking while sleeping?