| 67 | } |
| 68 | |
| 69 | void ReplayManager::DeleteCapture(const rdcstr &capture, bool local) |
| 70 | { |
| 71 | if(IsRunning() && !m_Thread->isCurrentThread()) |
| 72 | { |
| 73 | AsyncInvoke([this, capture, local](IReplayController *) { DeleteCapture(capture, local); }); |
| 74 | return; |
| 75 | } |
| 76 | |
| 77 | if(local) |
| 78 | { |
| 79 | QFile::remove(capture); |
| 80 | } |
| 81 | else |
| 82 | { |
| 83 | // this will be cleaned up automatically when the remote connection |
| 84 | // is closed. |
| 85 | if(m_Remote) |
| 86 | { |
| 87 | QMutexLocker autolock(&m_RemoteLock); |
| 88 | m_Remote->TakeOwnershipCapture(capture); |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | rdcarray<rdcstr> ReplayManager::GetRemoteSupport() |
| 94 | { |
no test coverage detected