diff --git a/src/plugins/cpaster/dpastedotcomprotocol.cpp b/src/plugins/cpaster/dpastedotcomprotocol.cpp index da9863bb4d6..847ce8cdb1a 100644 --- a/src/plugins/cpaster/dpastedotcomprotocol.cpp +++ b/src/plugins/cpaster/dpastedotcomprotocol.cpp @@ -140,11 +140,10 @@ void DPasteDotComProtocol::paste( }); } -bool DPasteDotComProtocol::checkConfiguration(QString *errorMessage) +bool DPasteDotComProtocol::checkConfiguration(QString * /*errorMessage*/) { - if (!m_hostKnownOk) - m_hostKnownOk = httpStatus(baseUrl(), errorMessage); - return m_hostKnownOk; + // we need a 1s gap between requests, so skip status check to avoid failing + return true; } void DPasteDotComProtocol::reportError(const QString &message) diff --git a/src/plugins/cpaster/dpastedotcomprotocol.h b/src/plugins/cpaster/dpastedotcomprotocol.h index 9b39052d8cb..363c42153bc 100644 --- a/src/plugins/cpaster/dpastedotcomprotocol.h +++ b/src/plugins/cpaster/dpastedotcomprotocol.h @@ -51,8 +51,6 @@ private: bool checkConfiguration(QString *errorMessage) override; static void reportError(const QString &message); - - bool m_hostKnownOk = false; }; } // namespace CodePaster