diff options
Diffstat (limited to 'common/listener.cpp')
-rw-r--r-- | common/listener.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/listener.cpp b/common/listener.cpp index cb974cf..84afe16 100644 --- a/common/listener.cpp +++ b/common/listener.cpp | |||
@@ -293,10 +293,11 @@ void Listener::processCommand(int commandId, uint messageId, const QByteArray &c | |||
293 | } break; | 293 | } break; |
294 | case Sink::Commands::RemoveFromDiskCommand: { | 294 | case Sink::Commands::RemoveFromDiskCommand: { |
295 | Log() << QString("Received a remove from disk command from %1").arg(client.name); | 295 | Log() << QString("Received a remove from disk command from %1").arg(client.name); |
296 | m_resource->removeDataFromDisk(); | ||
297 | delete m_resource; | 296 | delete m_resource; |
298 | m_resource = nullptr; | 297 | m_resource = nullptr; |
299 | loadResource()->setLowerBoundRevision(0); | 298 | loadResource()->removeDataFromDisk(); |
299 | m_server->close(); | ||
300 | QTimer::singleShot(0, this, &Listener::quit); | ||
300 | } break; | 301 | } break; |
301 | default: | 302 | default: |
302 | if (commandId > Sink::Commands::CustomCommand) { | 303 | if (commandId > Sink::Commands::CustomCommand) { |