diff options
Diffstat (limited to 'orkbasecxx')
-rw-r--r-- | orkbasecxx/AudioTape.h | 2 | ||||
-rw-r--r-- | orkbasecxx/CapturePort.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/orkbasecxx/AudioTape.h b/orkbasecxx/AudioTape.h index 84c0d82..91246d8 100644 --- a/orkbasecxx/AudioTape.h +++ b/orkbasecxx/AudioTape.h @@ -93,6 +93,7 @@ public: CStdString m_remoteIp; CStdString m_trackingId; CStdString m_nativeCallId; + StateEnum m_state; TapeResponseRef m_tapeResponse; @@ -127,7 +128,6 @@ private: AudioFileRef m_audioFileRef; ACE_Thread_Mutex m_mutex; - StateEnum m_state; bool m_shouldStop; bool m_readyForBatchProcessing; CStdString m_orkUid; diff --git a/orkbasecxx/CapturePort.cpp b/orkbasecxx/CapturePort.cpp index 677d966..751840c 100644 --- a/orkbasecxx/CapturePort.cpp +++ b/orkbasecxx/CapturePort.cpp @@ -268,7 +268,7 @@ void CapturePort::AddCaptureEvent(CaptureEventRef eventRef) bool CapturePort::IsExpired(time_t now) { - if((now - m_lastUpdated) > (10*60)) // 10 minutes + if((now - m_lastUpdated) > (10*60) && m_audioTapeRef->m_state != AudioTape::StateActive) // 10 minutes { return true; } |