Client disconnect is not required

This commit is contained in:
Itay Grudev 2015-05-07 15:53:48 +01:00
parent 41eb2c3499
commit bae14d8d45

View File

@ -17,7 +17,6 @@ SingleApplication::SingleApplication(int &argc, char *argv[])
socket = new QLocalSocket(); socket = new QLocalSocket();
socket->connectToServer(serverName); socket->connectToServer(serverName);
if(socket->waitForConnected(1000)){ if(socket->waitForConnected(1000)){
socket->close();
::exit(EXIT_SUCCESS); // Terminate the program using STDLib's exit function ::exit(EXIT_SUCCESS); // Terminate the program using STDLib's exit function
} else { } else {
// If the connection is insuccessful, this is the main process // If the connection is insuccessful, this is the main process