diff options
author | Itay Grudev <itay.grudev@gmail.com> | 2015-05-07 15:53:48 +0100 |
---|---|---|
committer | Itay Grudev <itay.grudev@gmail.com> | 2015-05-07 15:53:48 +0100 |
commit | bae14d8d4540f7692012981665cb7af31179d739 (patch) | |
tree | 20b2efcf5a3cd7d6edb4fc75026e8e8e13cfdf58 | |
parent | Fixed memory leak (diff) | |
download | singleapplication-bae14d8d4540f7692012981665cb7af31179d739.tar.xz |
Client disconnect is not required
-rw-r--r-- | singleapplication.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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 |