| 343 | } |
| 344 | |
| 345 | void ReplayManager::DisconnectFromRemoteServer() |
| 346 | { |
| 347 | m_RemoteHost.SetConnected(false); |
| 348 | |
| 349 | if(m_Remote) |
| 350 | { |
| 351 | QMutexLocker autolock(&m_RemoteLock); |
| 352 | // give the remote to the thread to shut down since the lifetime is tied to the replay |
| 353 | // controller it has. |
| 354 | if(IsRunning()) |
| 355 | { |
| 356 | m_OrphanedRemote = m_Remote; |
| 357 | } |
| 358 | else |
| 359 | { |
| 360 | m_Remote->ShutdownConnection(); |
| 361 | } |
| 362 | m_Remote = NULL; |
| 363 | } |
| 364 | |
| 365 | m_RemoteHost = RemoteHost(); |
| 366 | } |
| 367 | |
| 368 | void ReplayManager::ShutdownServer() |
| 369 | { |
no test coverage detected