Update cgminer.c

halfdelay(n); where n must be between 1 and 255. Use halfdelay(600) cause that pool_active check only once. You can reproduce this by running cgminer without internet connections, when resume connection but pools check never comes + in log u see "Press any key to exit, or cgminer will try again in 60s" only ones a time.
I also remove sleep(1) 60 times because if we click any key for exit we should wait for 60 seconds anyway. halfdelay(200) = 20sec delay that I suppose enough? if now you can use halfdelay(200) three times