Fix possible crashes if remote hosts are deleted during processing

This commit is contained in:
baldurk
2016-08-26 16:04:07 +02:00
parent 2d5de256d9
commit 52cf19e3b3
2 changed files with 3 additions and 1 deletions
@@ -222,6 +222,8 @@ namespace TreelistView
}
set
{
if (Owner == null)
return;
this[Owner.FieldIndex(fieldname)] = value;
}
}
+1 -1
View File
@@ -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)