public void PingRemote() { if (m_Remote == null) { return; } if (Monitor.TryEnter(m_Remote)) { try { // must only happen on render thread if running if ((!Running || m_Thread == Thread.CurrentThread) && m_Remote != null) { if (!m_Remote.Ping()) { m_RemoteHost.ServerRunning = false; } } } finally { Monitor.Exit(m_Remote); } } }
public void PingRemote() { if (m_CopyInProgress) { return; } // must only happen on render thread if running if ((!Running || m_Thread == Thread.CurrentThread) && m_Remote != null) { if (!m_Remote.Ping()) { m_RemoteHost.ServerRunning = false; } } }