agent: Fixing panic on shutdown

pull/711/head
Armon Dadgar 2015-02-05 17:29:55 -08:00
parent e99f9dd070
commit 6a640604dd
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
}