Cleanup
This commit is contained in:
parent
357a05f8dc
commit
2a1d345223
1 changed files with 4 additions and 2 deletions
|
|
@ -46,8 +46,9 @@ public static class BanChannel
|
|||
return;
|
||||
}
|
||||
|
||||
foreach (var existing in _reporters)
|
||||
for (var i = 0; i < _reporters.Length; i++)
|
||||
{
|
||||
var existing = _reporters[i];
|
||||
if (existing.Name == reporter.Name)
|
||||
{
|
||||
return;
|
||||
|
|
@ -84,8 +85,9 @@ public static class BanChannel
|
|||
|
||||
public static void Stop()
|
||||
{
|
||||
foreach (var reporter in _reporters)
|
||||
for (var i = 0; i < _reporters.Length; i++)
|
||||
{
|
||||
var reporter = _reporters[i];
|
||||
try
|
||||
{
|
||||
reporter.Stop();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue