From 58776c2732a5005cfa2939f25b7b235d8e3344af Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 21 Nov 2014 13:19:17 +0100 Subject: when we have no more clients, quit --- resource/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'resource') diff --git a/resource/main.cpp b/resource/main.cpp index 3bd4656..6835a18 100644 --- a/resource/main.cpp +++ b/resource/main.cpp @@ -18,6 +18,8 @@ int main(int argc, char *argv[]) QObject::connect(&app, &QCoreApplication::aboutToQuit, listener, &Listener::closeAllConnections); + QObject::connect(listener, &Listener::noClients, + &app, &QCoreApplication::quit); return app.exec(); } \ No newline at end of file -- cgit v1.2.3