From bae14d8d4540f7692012981665cb7af31179d739 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Thu, 7 May 2015 15:53:48 +0100 Subject: Client disconnect is not required --- singleapplication.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/singleapplication.cpp b/singleapplication.cpp index 4858f96..18044da 100644 --- a/singleapplication.cpp +++ b/singleapplication.cpp @@ -17,7 +17,6 @@ SingleApplication::SingleApplication(int &argc, char *argv[]) socket = new QLocalSocket(); socket->connectToServer(serverName); if(socket->waitForConnected(1000)){ - socket->close(); ::exit(EXIT_SUCCESS); // Terminate the program using STDLib's exit function } else { // If the connection is insuccessful, this is the main process -- cgit v1.2.1