Double-piston valve