diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-06-28 22:30:14 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-06-28 22:30:14 -0500 |
commit | e89735d72ae3b320c33f7ad95c3cbc9ea6d42f6c (patch) | |
tree | 082b8c247ba91b735394a9ba8d4f87bf416a389f /clients/tde/src/app/remotemdi.cpp | |
parent | 65ea633f475c7ab2b524dc1ffb369f6607df3e6b (diff) | |
download | ulab-e89735d72ae3b320c33f7ad95c3cbc9ea6d42f6c.tar.gz ulab-e89735d72ae3b320c33f7ad95c3cbc9ea6d42f6c.zip |
Convert krb client socket to stateful init
Diffstat (limited to 'clients/tde/src/app/remotemdi.cpp')
-rw-r--r-- | clients/tde/src/app/remotemdi.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clients/tde/src/app/remotemdi.cpp b/clients/tde/src/app/remotemdi.cpp index 3ecf181..3e5c075 100644 --- a/clients/tde/src/app/remotemdi.cpp +++ b/clients/tde/src/app/remotemdi.cpp @@ -168,7 +168,11 @@ void RemoteMDI::connectToServer() { connectionTimeout.stop(); if (m_rsvSvrSocket->state() == TQSocket::Connected) { printf("[DEBUG] Initial connection established...\n\r"); fflush(stdout); - if (m_rsvSvrSocket->setUsingKerberos(true) != 0) { + m_rsvSvrSocket->setUsingKerberos(true); + while (m_rsvSvrSocket->kerberosStatus() == TDEKerberosClientSocket::KerberosInitializing) { + tqApp->processEvents(); + } + if (m_rsvSvrSocket->kerberosStatus() != TDEKerberosClientSocket::KerberosInUse) { disconnectFromServer(); KMessageBox::error(this, i18n("<qt>Unable to establish Kerberos protocol with remote server<p>Please verify that you currently hold a valid Kerberos ticket</qt>"), i18n("Connection Failed")); } @@ -344,11 +348,7 @@ void RemoteMDI::childWindowCloseRequest(KMdiChildView *pWnd) { iview->closeConnections(); iview->hide(); - // RAJA FIXME - // Executing KMdiMainFrm::childWindowCloseRequest(pWnd) here will probably cause a crash - // We need to call this AFTER control has been returned to the main event loop at least once - // This is related to my lack of proper returning to the event loop, which MUST BE FIXED -// KMdiMainFrm::childWindowCloseRequest(pWnd); // RAJA UNCOMMENT ME + KMdiMainFrm::childWindowCloseRequest(pWnd); } } |