changeset 262 | 8731a1b81301 |
parent 256 | 6dc6410489f4 |
child 324 | c6ee430d6995 |
1.1 --- a/Hardware/Computer.cs Tue Mar 15 22:00:31 2011 +0000 1.2 +++ b/Hardware/Computer.cs Wed Mar 16 22:10:26 2011 +0000 1.3 @@ -268,9 +268,11 @@ 1.4 if (!open) 1.5 return; 1.6 1.7 - foreach (IGroup group in groups) 1.8 - group.Close(); 1.9 - groups.Clear(); 1.10 + while (groups.Count > 0) { 1.11 + IGroup group = groups[groups.Count - 1]; 1.12 + Remove(group); 1.13 + group.Close(); 1.14 + } 1.15 1.16 Opcode.Close(); 1.17 Ring0.Close();