diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-14 00:27:06 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-14 00:27:34 +0200 |
commit | 7db013780b5318cb383c49caef4f77d39d440ea9 (patch) | |
tree | b090e6634fb6f4cddddec0ae5e106d8931dc4555 /examples/imapresource/imapserverproxy.h | |
parent | a3c3fb61e08523a563ce3cba86dc50c9c5fc2c5d (diff) | |
download | sink-7db013780b5318cb383c49caef4f77d39d440ea9.tar.gz sink-7db013780b5318cb383c49caef4f77d39d440ea9.zip |
Ping the server first to make sure it's available.
This significantely reduces the time required to execute the tests.
Diffstat (limited to 'examples/imapresource/imapserverproxy.h')
-rw-r--r-- | examples/imapresource/imapserverproxy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/imapresource/imapserverproxy.h b/examples/imapresource/imapserverproxy.h index e4766e9..b54b41e 100644 --- a/examples/imapresource/imapserverproxy.h +++ b/examples/imapresource/imapserverproxy.h | |||
@@ -129,6 +129,8 @@ public: | |||
129 | KAsync::Job<void> fetchMessages(const Folder &folder, std::function<void(const QVector<Message> &)> callback); | 129 | KAsync::Job<void> fetchMessages(const Folder &folder, std::function<void(const QVector<Message> &)> callback); |
130 | 130 | ||
131 | private: | 131 | private: |
132 | KAsync::Job<void> ping(); | ||
133 | |||
132 | QObject mGuard; | 134 | QObject mGuard; |
133 | }; | 135 | }; |
134 | 136 | ||