mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-01-15 17:02:06 +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 = 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
|
||||||
|
Loading…
Reference in New Issue
Block a user