mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Fix possible crashes if remote hosts are deleted during processing
This commit is contained in:
@@ -222,6 +222,8 @@ namespace TreelistView
|
||||
}
|
||||
set
|
||||
{
|
||||
if (Owner == null)
|
||||
return;
|
||||
this[Owner.FieldIndex(fieldname)] = value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -294,7 +294,7 @@ namespace renderdocui.Windows
|
||||
// perform a probe of known remote hosts to see if they're running or not
|
||||
if (!me.m_Core.LogLoading && !me.m_Core.LogLoaded)
|
||||
{
|
||||
foreach (var host in me.m_Core.Config.RemoteHosts)
|
||||
foreach (var host in me.m_Core.Config.RemoteHosts.ToArray())
|
||||
{
|
||||
// don't mess with a host we're connected to - this is handled anyway
|
||||
if (host.Connected)
|
||||
|
||||
Reference in New Issue
Block a user