Skip to content

Commit

Permalink
fix: close stream when reconciler
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Dec 14, 2023
1 parent d1413e6 commit f39d3b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/loader/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ func (r *Reconciler) watch(ctx context.Context) (*storage.Stream, error) {
r.mu.Lock()
defer r.mu.Unlock()

r.stream = nil
if r.stream == s {
r.stream = nil
}
case <-r.done:
return
}
Expand Down

0 comments on commit f39d3b0

Please sign in to comment.