summaryrefslogtreecommitdiffstats
path: root/common/clientapi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/clientapi.cpp')
-rw-r--r--common/clientapi.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/clientapi.cpp b/common/clientapi.cpp
index 10115da..6f0b421 100644
--- a/common/clientapi.cpp
+++ b/common/clientapi.cpp
@@ -36,10 +36,7 @@ void Store::shutdown(const QString &identifier)
36 Akonadi2::ResourceAccess resourceAccess(identifier); 36 Akonadi2::ResourceAccess resourceAccess(identifier);
37 //FIXME this starts the resource, just to shut it down again if it's not running in the first place. 37 //FIXME this starts the resource, just to shut it down again if it's not running in the first place.
38 resourceAccess.open(); 38 resourceAccess.open();
39 resourceAccess.sendCommand(Akonadi2::Commands::ShutdownCommand).then<void>([](Async::Future<void> &f){ 39 resourceAccess.sendCommand(Akonadi2::Commands::ShutdownCommand).exec().waitForFinished();
40 //TODO wait for disconnect
41 f.setFinished();
42 }).exec().waitForFinished();
43} 40}
44 41
45} // namespace Akonadi2 42} // namespace Akonadi2