summaryrefslogtreecommitdiffstats
path: root/common/genericresource.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-05-25 16:09:32 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-05-25 16:09:32 +0200
commiteddacfc5aff36eb3b16f12cba12ba1a88f5ee6e2 (patch)
treed69e30a682f720561b0b68b000803498bb3d952e /common/genericresource.cpp
parentec8c0bdaf1c55dd251af2953644d528b2103dd56 (diff)
downloadsink-eddacfc5aff36eb3b16f12cba12ba1a88f5ee6e2.tar.gz
sink-eddacfc5aff36eb3b16f12cba12ba1a88f5ee6e2.zip
Remove invalid comments
The lifetime is now correctly controlled by the execution.
Diffstat (limited to 'common/genericresource.cpp')
-rw-r--r--common/genericresource.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/common/genericresource.cpp b/common/genericresource.cpp
index 2394b80..4467e86 100644
--- a/common/genericresource.cpp
+++ b/common/genericresource.cpp
@@ -109,10 +109,6 @@ private slots:
109 } 109 }
110 auto queuedCommand = Akonadi2::GetQueuedCommand(ptr); 110 auto queuedCommand = Akonadi2::GetQueuedCommand(ptr);
111 Trace() << "Dequeued Command: " << Akonadi2::Commands::name(queuedCommand->commandId()); 111 Trace() << "Dequeued Command: " << Akonadi2::Commands::name(queuedCommand->commandId());
112 //TODO JOBAPI: job lifetime management
113 //Right now we're just leaking jobs. In this case we'd like jobs that are heap allocated and delete
114 //themselves once done. In other cases we'd like jobs that only live as long as their handle though.
115 //FIXME this job is stack allocated and thus simply dies....
116 processQueuedCommand(queuedCommand).then<void>( 112 processQueuedCommand(queuedCommand).then<void>(
117 [callback]() { 113 [callback]() {
118 callback(true); 114 callback(true);