mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=5806
This commit is contained in:
parent
d23dca8530
commit
92de5a571a
|
@ -142,8 +142,8 @@ wxInt32 CNetworkConnectionThread::SetNewComputerPassword( const wxChar* szPasswo
|
|||
|
||||
void CNetworkConnectionThread::SetStateError() {
|
||||
CMainFrame* pFrame = wxGetApp().GetFrame();
|
||||
wxASSERT(wxDynamicCast(pFrame, CMainFrame));
|
||||
|
||||
if (wxDynamicCast(pFrame, CMainFrame)) {
|
||||
m_bConnected = false;
|
||||
m_bReconnecting = false;
|
||||
m_bReconnectOnError = false;
|
||||
|
@ -151,6 +151,7 @@ void CNetworkConnectionThread::SetStateError() {
|
|||
m_bConnectEvent = false;
|
||||
|
||||
pFrame->FireConnectError();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -164,8 +165,8 @@ void CNetworkConnectionThread::SetStateReconnecting() {
|
|||
|
||||
void CNetworkConnectionThread::SetStateSuccess( std::string& strComputer, std::string& strComputerPassword ) {
|
||||
CMainFrame* pFrame = wxGetApp().GetFrame();
|
||||
wxASSERT(wxDynamicCast(pFrame, CMainFrame));
|
||||
|
||||
if (wxDynamicCast(pFrame, CMainFrame)) {
|
||||
m_bConnected = true;
|
||||
m_bReconnecting = false;
|
||||
m_bReconnectOnError = true;
|
||||
|
@ -177,6 +178,7 @@ void CNetworkConnectionThread::SetStateSuccess( std::string& strComputer, std::s
|
|||
m_bConnectEvent = false;
|
||||
|
||||
pFrame->FireConnect();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue