mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
refs #719, avoid infinite loop when info object read succeeds, but has incorrect authorizations
* marker for info reader that it failed * distinguish between "server cannot be connected" and other errors
This commit is contained in:
@@ -103,7 +103,7 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
bool hasReceivedOkReply() const;
|
||||
|
||||
//! Has received Ok response from server at least once?
|
||||
//! Has received Ok response from server?
|
||||
//! A message why connect failed can be obtained.
|
||||
//! \threadsafe
|
||||
bool hasReceivedOkReply(QString &message) const;
|
||||
@@ -151,7 +151,7 @@ namespace BlackCore
|
||||
protected:
|
||||
CDatabaseReaderConfigList m_config; //!< DB reder configuration
|
||||
QString m_statusMessage; //!< Returned status message from watchdog
|
||||
bool m_1stReplyReceived = false; //!< Successful connection?
|
||||
bool m_1stReplyReceived = false; //!< Successful connection? Does not mean data / authorizations are correct
|
||||
QNetworkReply::NetworkError m_1stReplyStatus = QNetworkReply::UnknownServerError; //!< Successful connection?
|
||||
mutable QReadWriteLock m_statusLock; //!< Lock
|
||||
|
||||
|
||||
Reference in New Issue
Block a user