Skip to content

Commit

Permalink
Add comments in Client/ConnecterDesktopThread.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Jul 31, 2024
1 parent 590ffa1 commit 676a2b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Client/ConnecterDesktopThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ int CConnecterDesktopThread::Connect()
qDebug(log) << "CConnecterDesktopThread::Connect()";
int nRet = 0;
m_pThread = new CConnectThread(this);
if(!m_pThread)
if(!m_pThread) {
qCritical(log) << "new CConnectThread fail";
return -2;
}
bool check = false;
check = connect(m_pThread, SIGNAL(finished()),
m_pThread, SLOT(deleteLater()));
Expand Down Expand Up @@ -108,4 +110,3 @@ int CConnecterDesktopThread::Save(QSettings &set)
GetParameter()->Save(set);
return nRet;
}

0 comments on commit 676a2b1

Please sign in to comment.