while(1)
{
   hour++;
   joinDc();
   if(hour == 2)
      exitDc();
}