until both objects reach the same temperature.
When you take two things of different temperature in contact with each other, energy will always be transferred from the hotter object to the cooler object. The objects will transfer thermal energy until the thermal balance is reached, i.e.the temperature of both of the bodies become equal