Skip to content

Commit 1ad0329

Browse files
committed
Plugin:add emit m_pOperate->sigStop in CBackendThread
1 parent 18fe9a5 commit 1ad0329

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Src/Backend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void CBackend::slotTimeOut()
127127
qCritical(log) << "Process fail";
128128
emit sigError(-3, "Process fail");
129129
}
130-
130+
131131
// Error or stop, must notify user disconnect it
132132
emit sigStop();
133133
}

Src/BackendThread.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ void CBackendThread::run()
7878
if(!m_pBackend || !bRet)
7979
{
8080
qCritical(log) << "InstanceBackend fail";
81+
emit m_pOperate->sigStop();
8182
emit m_pOperate->sigFinished();
8283
return;
8384
}
@@ -89,6 +90,7 @@ void CBackendThread::run()
8990
m_pBackend->Stop();
9091
m_pBackend->deleteLater();
9192
m_pBackend = nullptr;
93+
emit m_pOperate->sigStop();
9294
emit m_pOperate->sigFinished();
9395
return;
9496
}

0 commit comments

Comments
 (0)