water supply condition for supplying water to the water dispenser is arises before the automatic ice maker toward the water dispenser and then toward the automatic ice maker and step s400 for turning off a pump motor 75 and a solenoid valve 110 when the water supply toward the water dispenser and the automatic ice maker in the steps s200 and s300 to complete the water supply in the water supply condition determining step s100 it is determined whether or not the pump motor 75 is in the drive condition in step s110 the drive condition of the pump motor is generated when the automatic ice maker completes an ice removal operation to place the ice tray into an original position or a user presses the water supply lever of the water dispenser using a cup to enable the dispenser switch to be turned on if the pump motor is in the drive condition it is determined whether or not the dispenser switch is turned on in step s120 if the dispenser switch is turned on the water dispenser needs water to be supplied while if the former is turned off the ice maker needs water to be supplied when only.