GPG and Tor problem

If I use gpg when browsing on Tor Browser, it does not create any problem. After I stop using Tor and try to use gpg again, this problem happens:

gpg --refresh-keys
gpg: refreshing 6 keys from hkps://keys.openpgp.org
gpg: WARNING: Tor is not running
gpg: WARNING: Tor is not running
gpg: WARNING: Tor is not running
gpg: WARNING: Tor is not running
gpg: WARNING: Tor is not running
gpg: WARNING: Tor is not running
gpg: keyserver refresh failed: Connection refused

How is this related to Tor?
Edit: Resetting to a new Tor identity resolves the problem.

A post was merged into an existing topic: GnuPG Configuration