A cooling device comprising: a freezing cycle including a compressor , a condenser , a pressure reducing means , and a cooling evaporator ; a bypass line, L 3 , connected to the pressure reducing means in parallel; an ice-making evaporator disposed in the bypass line; an ice-making tray ; an ice-making pressure reducing means disposed at an upstream side of the ice-making evaporator ; a switching valve disposed at a branch point of the bypass line; a first temperature sensor provided in the ice-making tray ; and a control device configured to control the opening and closing of the switching valve , wherein the condenser includes a first condenser and a second condenser independent from each other, the second condenser being positioned at a downstream side of the first condenser in a refrigerant channel, and the first condenser and the second condenser are connected to each other through a dew condensation preventing pipe , and wherein the control device is configured to: control the switching valve to connect a port adjacent to the second condenser and a port adjacent to the bypass line when a detection temperature of the first temperature sensor is greater than or equal to an upper limit temperature, and control the switching valve to close the port adjacent to the bypass line and to connect the port adjacent to the second condenser and a port adjacent to the pressure reducing means when the detection temperature of the first temperature sensor is less than or equal to a lower limit temperature. a freezing cycle including a compressor , a condenser , a pressure reducing means , and a cooling evaporator ; a bypass line, L 3 , connected to the pressure reducing means in parallel; an ice-making evaporator disposed in the bypass line; an ice-making tray ; an ice-making pressure reducing means disposed at an upstream side of the ice-making evaporator ; a switching valve disposed at a branch point of the bypass line; a first temperature sensor provided in the ice-making tray ; and a control device configured to control the opening and closing of the switching valve , wherein the condenser includes a first condenser and a second condenser independent from each other, the second condenser being positioned at a downstream side of the first condenser in a refrigerant channel, and the first condenser and the second condenser are connected to each other through a dew condensation preventing pipe , and wherein the control device is configured to: control the switching valve to connect a port adjacent to the second condenser and a port adjacent to the bypass line when a detection temperature of the first temperature sensor is greater than or equal to an upper limit temperature, and control the switching valve to close the port adjacent to the bypass line and to connect the port adjacent to the second condenser and a port adjacent to the pressure reducing means when the detection temperature of the first temperature sensor is less than or equal to a lower limit temperature. control the switching valve to connect a port adjacent to the second condenser and a port adjacent to the bypass line when a detection temperature of the first temperature sensor is greater than or equal to an upper limit temperature, and control the switching valve to close the port adjacent to the bypass line and to connect the port adjacent to the second condenser and a port adjacent to the pressure reducing means when the detection temperature of the first temperature sensor is less than or equal to a lower limit temperature. <EOS>