mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 02:16:04 +08:00
refs #341 Interpret return code before moving on
This commit is contained in:
@@ -77,8 +77,19 @@ namespace BlackSimPlugin
|
|||||||
if (m_hostStatus == Terminated) return hr;
|
if (m_hostStatus == Terminated) return hr;
|
||||||
|
|
||||||
qDebug() << "Terminating host";
|
qDebug() << "Terminating host";
|
||||||
hr = m_directPlayPeer->TerminateSession(nullptr, 0, 0);
|
|
||||||
hr = m_directPlayPeer->Close(0);
|
if (FAILED(hr = m_directPlayPeer->TerminateSession(nullptr, 0, 0)))
|
||||||
|
{
|
||||||
|
qWarning() << "Failed to terminate session!";
|
||||||
|
return hr;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FAILED(hr = m_directPlayPeer->Close(0)))
|
||||||
|
{
|
||||||
|
qWarning() << "Failed to close peer!";
|
||||||
|
return hr;
|
||||||
|
}
|
||||||
|
|
||||||
m_hostStatus = Terminated;
|
m_hostStatus = Terminated;
|
||||||
|
|
||||||
emit statusChanged(m_hostStatus);
|
emit statusChanged(m_hostStatus);
|
||||||
|
|||||||
Reference in New Issue
Block a user