From 65dbd90e1104956604a7905d578bcd8b0130b065 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Wed, 9 Oct 2024 12:21:45 +0100 Subject: [PATCH] Reflectors watch: close after stop --- kubespawner/reflector.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kubespawner/reflector.py b/kubespawner/reflector.py index c3271916..12f30f4a 100644 --- a/kubespawner/reflector.py +++ b/kubespawner/reflector.py @@ -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