Skip to content

Commit

Permalink
Reflectors watch: close after stop
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Oct 9, 2024
1 parent 621be0e commit 65dbd90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kubespawner/reflector.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ async def _watch_and_update(self):
self.log.debug("%s watcher timeout", self.kind)
finally:
w.stop()
await w.close()
if self._stopping:
self.log.info("%s watcher stopped: outer", self.kind)
break
Expand Down

0 comments on commit 65dbd90

Please sign in to comment.