diff options
Diffstat (limited to 'src/libs/installer/remoteobject.cpp')
-rw-r--r-- | src/libs/installer/remoteobject.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libs/installer/remoteobject.cpp b/src/libs/installer/remoteobject.cpp index add11fa68..990710609 100644 --- a/src/libs/installer/remoteobject.cpp +++ b/src/libs/installer/remoteobject.cpp @@ -77,15 +77,7 @@ bool RemoteObject::authorize() m_socket = new LocalSocket; m_socket->connectToServer(RemoteClient::instance().socketName()); - QElapsedTimer stopWatch; - stopWatch.start(); - while ((m_socket->state() == QLocalSocket::ConnectingState) - && (stopWatch.elapsed() < 30000)) { - if ((stopWatch.elapsed() % 2500) == 0) - QCoreApplication::processEvents(); - } - - if (m_socket->state() == QLocalSocket::ConnectedState) { + if (m_socket->waitForConnected()) { bool authorized = callRemoteMethod<bool>(QString::fromLatin1(Protocol::Authorize), RemoteClient::instance().authorizationKey()); if (authorized) |