agent: Fixing panic on shutdown

This commit is contained in:
Armon Dadgar 2015-02-05 17:29:55 -08:00
parent 75849d643e
commit d9f95e2983
2 changed files with 1 additions and 2 deletions

View File

@ -141,7 +141,6 @@ func (s *scadaListener) Close() error {
return nil
}
s.closed = true
close(s.pending)
close(s.closedCh)
return nil
}