Your device is jailbroken, there is a new jailbreak out and you try to restore, iTunes keeps restoring your device, rebooting it, then telling you it has encountered some 4digit error (my latest one was 1013) and that it has found an iDevice in recovery mode and needs to restore it, over and over again.
The most probable reason and cure in this case is that iTunes failed to verify the restore with apple (ET phone home) and this in turn is most likely because gs.apple.com is pointing to a server that is not responding properly, probably because you entered an alternate ip address yourself in the hosts file or something like tinyumbrella did it for you. Just comment out all the entries in the hosts file (in /etc/ on a mac or in %SystemRoot%\system32\drivers\etc\ on win machines) that contain gs.apple.com by putting a # in front of the entry. Then restart your internet connection (on your computer, not your home network).
If you rely on TinyUmbrella for signatures, then make sure that localhost/127.0.0.1 is uncommented in your hosts file.