diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-03-29 11:22:24 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-03-31 11:11:08 +0200 |
commit | 34851314d39307f22df01a4b711e6fd3c5618e23 (patch) | |
tree | db1b6d191f40544eadc302dd33af8561e1d5c0c1 /common/resourceaccess.h | |
parent | 0b2c8bb61ad1c8fdc4e471172f49b704ca3a1ccb (diff) | |
download | sink-34851314d39307f22df01a4b711e6fd3c5618e23.tar.gz sink-34851314d39307f22df01a4b711e6fd3c5618e23.zip |
Don't try to restart the resource on every disconnect.
There's a chance that the resource actually wanted to shut-down. Instead
ResourceAccess should only reopen the connection if it still has work to do.
Diffstat (limited to 'common/resourceaccess.h')
-rw-r--r-- | common/resourceaccess.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/resourceaccess.h b/common/resourceaccess.h index c5b8a6c..a5a2547 100644 --- a/common/resourceaccess.h +++ b/common/resourceaccess.h | |||
@@ -66,6 +66,7 @@ private Q_SLOTS: | |||
66 | private: | 66 | private: |
67 | void log(const QString &message); | 67 | void log(const QString &message); |
68 | void registerCallback(uint messageId, const std::function<void(int error, const QString &)> &callback); | 68 | void registerCallback(uint messageId, const std::function<void(int error, const QString &)> &callback); |
69 | void startResourceAndConnect(); | ||
69 | 70 | ||
70 | class Private; | 71 | class Private; |
71 | Private * const d; | 72 | Private * const d; |