mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:37:32 +00:00
fix: handle closed channels on unsubscribe (#1995)
This commit is contained in:
@@ -67,5 +67,8 @@ func (s *Subscription) Unsubscribe() {
|
||||
}
|
||||
}
|
||||
}
|
||||
close(s.Events)
|
||||
_, ok := <-s.Events
|
||||
if ok {
|
||||
close(s.Events)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user