Control device for self-closing tap