mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-01-15 08:52:08 +08:00
Client disconnect is not required
This commit is contained in:
parent
41eb2c3499
commit
bae14d8d45
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user