An ice-cream making machine (1) comprises a first production line (3) and a second production line (4) with an inlet pump (304), a mixing and chilling chamber (305), an outlet pump (311) connected in series, as well as a cooling circuit (316) in heat exchange connection with the mixing and chilling chamber (305), respectively.wherein an auxiliary conduit (5) selectively connects and disconnects the outlet pump (311) of the first production line (3) to/from an inlet of the mixing and chilling chamber (405) of the second production line (4), so as to be able to process either two flows of confectionery mass mutually independently or a single flow of confectionery mass by means of both production lines (3, 4).