mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +00:00
fix: handle closed channels on unsubscribe (#1995)
This commit is contained in:
@@ -69,7 +69,10 @@ func (s *Subscription) Unsubscribe() {
|
||||
}
|
||||
}
|
||||
}
|
||||
close(s.Events)
|
||||
_, ok := <-s.Events
|
||||
if ok {
|
||||
close(s.Events)
|
||||
}
|
||||
}
|
||||
|
||||
func MapEventsToV1Events(events []EventReader) []*models.Event {
|
||||
|
Reference in New Issue
Block a user