Skip to content

Commit

Permalink
Merge pull request #859 from manics/reflector-watch-close
Browse files Browse the repository at this point in the history
Reflectors watch: close after stop
  • Loading branch information
manics authored Oct 9, 2024
2 parents 621be0e + 65dbd90 commit 7ba57a8
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 7ba57a8

Please sign in to comment.