mirror of
https://github.com/openziti/zrok.git
synced 2025-01-08 23:20:04 +01:00
fix for controller shutdown when amqpSource is in reconnecting state (#344)
This commit is contained in:
parent
459e0e60a1
commit
368ddf5f01
@ -81,8 +81,10 @@ func (s *amqpSource) Start(events chan ZitiEventMsg) (join chan struct{}, err er
|
||||
}
|
||||
|
||||
func (s *amqpSource) Stop() {
|
||||
if err := s.ch.Close(); err != nil {
|
||||
logrus.Error(err)
|
||||
if s.ch != nil {
|
||||
if err := s.ch.Close(); err != nil {
|
||||
logrus.Error(err)
|
||||
}
|
||||
}
|
||||
close(s.join)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user