CGE2: Fix endless loop regarding kCmdWait.