From 7fffb4d8d40df9b78f58ae408c977ac444075a8d Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 2 Aug 2006 17:58:27 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=10819 --- clientgui/MainDocument.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clientgui/MainDocument.cpp b/clientgui/MainDocument.cpp index 05b1b92f48..49e66c058b 100644 --- a/clientgui/MainDocument.cpp +++ b/clientgui/MainDocument.cpp @@ -117,10 +117,14 @@ void CNetworkConnection::Poll() { if (!IsConnected()) { // determine computer name and password to use. + // NOTE: Initial connection case. if (!m_strNewComputerName.empty()) { strComputer = m_strNewComputerName; strComputerPassword = m_strNewComputerPassword; } else { + // NOTE: Reconnect after a disconnect case. + // Values are stored after the first successful connect to the host. + // See: SetStateSuccess() if (!m_strConnectedComputerName.empty()) { strComputer = m_strConnectedComputerName; strComputerPassword = m_strConnectedComputerPassword;