removed some debug output

This commit is contained in:
csoler 2023-11-10 22:42:32 +01:00
parent a64fda1fb8
commit 48da2d195a
6 changed files with 21 additions and 6 deletions

View file

@ -139,17 +139,22 @@ static bool notifyRunningInstance()
// that a new process had been started
QLocalSocket localSocket;
localSocket.connectToServer(QString(TARGET));
#ifdef DEBUG
std::cerr << "Rshare::Rshare waitForConnected to other instance." << std::endl;
#endif
if( localSocket.waitForConnected(100) )
{
#ifdef DEBUG
std::cerr << "Rshare::Rshare Connection etablished. Waiting for disconnection." << std::endl;
#endif
localSocket.waitForDisconnected(1000);
return true;
}
else
{
#ifdef DEBUG
std::cerr << "Rshare::Rshare failed to connect to other instance." << std::endl;
#endif
return false;
}
}