summaryrefslogtreecommitdiffstats
path: root/synchronizer/listener.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'synchronizer/listener.cpp')
-rw-r--r--synchronizer/listener.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/synchronizer/listener.cpp b/synchronizer/listener.cpp
index 6c07809..1050da3 100644
--- a/synchronizer/listener.cpp
+++ b/synchronizer/listener.cpp
@@ -255,6 +255,8 @@ void Listener::processCommand(int commandId, uint messageId, const QByteArray &c
255 break; 255 break;
256 case Akonadi2::Commands::ShutdownCommand: 256 case Akonadi2::Commands::ShutdownCommand:
257 Log() << QString("\tReceived shutdown command from %1").arg(client.name); 257 Log() << QString("\tReceived shutdown command from %1").arg(client.name);
258 //Immediately reject new connections
259 m_server->close();
258 QTimer::singleShot(0, this, &Listener::quit); 260 QTimer::singleShot(0, this, &Listener::quit);
259 break; 261 break;
260 default: 262 default:
@@ -285,7 +287,7 @@ void Listener::quit()
285 } 287 }
286 m_fbb.Clear(); 288 m_fbb.Clear();
287 289
288 m_server->close(); 290 //Connections will be cleaned up later
289 emit noClients(); 291 emit noClients();
290} 292}
291 293