diff options
-rw-r--r-- | sinksh/syntax_modules/sink_sync.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sinksh/syntax_modules/sink_sync.cpp b/sinksh/syntax_modules/sink_sync.cpp index 250cd75..ed2912e 100644 --- a/sinksh/syntax_modules/sink_sync.cpp +++ b/sinksh/syntax_modules/sink_sync.cpp | |||
@@ -51,7 +51,6 @@ bool sync(const QStringList &args, State &state) | |||
51 | } | 51 | } |
52 | } | 52 | } |
53 | 53 | ||
54 | QTimer::singleShot(0, [query, state]() { | ||
55 | Sink::Store::synchronize(query) | 54 | Sink::Store::synchronize(query) |
56 | .then(Sink::ResourceControl::flushMessageQueue(query.getResourceFilter().ids)) | 55 | .then(Sink::ResourceControl::flushMessageQueue(query.getResourceFilter().ids)) |
57 | .then([state](const KAsync::Error &error) { | 56 | .then([state](const KAsync::Error &error) { |
@@ -62,7 +61,6 @@ bool sync(const QStringList &args, State &state) | |||
62 | } | 61 | } |
63 | state.commandFinished(); | 62 | state.commandFinished(); |
64 | }).exec(); | 63 | }).exec(); |
65 | }); | ||
66 | 64 | ||
67 | return true; | 65 | return true; |
68 | } | 66 | } |