mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T730, stop input/output if object is destroyed
This commit is contained in:
committed by
Mat Sutcliffe
parent
5eb3dee829
commit
e560be65a6
@@ -125,11 +125,9 @@ namespace BlackCore
|
||||
|
||||
void CInput::stop()
|
||||
{
|
||||
if (! m_started) { return; }
|
||||
|
||||
if (!m_started) { return; }
|
||||
m_started = false;
|
||||
|
||||
m_audioInput->stop();
|
||||
if (m_audioInput) { m_audioInput->stop(); }
|
||||
m_audioInput.reset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user