diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-12 11:45:15 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-12 11:45:15 +0100 |
commit | 7daeec83233c522980d5e477fee82045de57f77d (patch) | |
tree | 5e03d11d23c764eb03f27393fcc37c0529405e10 /sinksh | |
parent | af8baff21529b5bc47725da3e9e00ec81e5b6f1b (diff) | |
download | sink-7daeec83233c522980d5e477fee82045de57f77d.tar.gz sink-7daeec83233c522980d5e477fee82045de57f77d.zip |
syncThen is no longer necessary
Diffstat (limited to 'sinksh')
-rw-r--r-- | sinksh/syntax_modules/sink_sync.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sinksh/syntax_modules/sink_sync.cpp b/sinksh/syntax_modules/sink_sync.cpp index f90f055..250cd75 100644 --- a/sinksh/syntax_modules/sink_sync.cpp +++ b/sinksh/syntax_modules/sink_sync.cpp | |||
@@ -54,7 +54,7 @@ bool sync(const QStringList &args, State &state) | |||
54 | QTimer::singleShot(0, [query, state]() { | 54 | QTimer::singleShot(0, [query, state]() { |
55 | Sink::Store::synchronize(query) | 55 | Sink::Store::synchronize(query) |
56 | .then(Sink::ResourceControl::flushMessageQueue(query.getResourceFilter().ids)) | 56 | .then(Sink::ResourceControl::flushMessageQueue(query.getResourceFilter().ids)) |
57 | .syncThen<void>([state](const KAsync::Error &error) { | 57 | .then([state](const KAsync::Error &error) { |
58 | if (error) { | 58 | if (error) { |
59 | state.printLine("Synchronization failed!"); | 59 | state.printLine("Synchronization failed!"); |
60 | } else { | 60 | } else { |