Explicitly stop the watcher after reading from it

This commit is contained in:
André Duffeck
2025-06-05 08:58:40 +02:00
parent e9201d65a0
commit ac8b58233e

View File

@@ -416,6 +416,7 @@ func (a *ActivitylogService) activities(rid *provider.ResourceId) ([]RawActivity
if err != nil {
return nil, err
}
defer watcher.Stop()
var activities []RawActivity
for update := range watcher.Updates() {