From fab734d39a5b8d5a920ac7edac704da4d49a2071 Mon Sep 17 00:00:00 2001 From: Erica Liu <30773688+Erica177@users.noreply.github.com> Date: Thu, 21 Sep 2023 17:03:04 +0800 Subject: [PATCH] fix: nacos client opened, but not been closed (#542) --- registry/nacos/v2/watcher.go | 1 + 1 file changed, 1 insertion(+) diff --git a/registry/nacos/v2/watcher.go b/registry/nacos/v2/watcher.go index 24be217cd..158cdb49a 100644 --- a/registry/nacos/v2/watcher.go +++ b/registry/nacos/v2/watcher.go @@ -491,6 +491,7 @@ func (w *watcher) Stop() { } w.isStop = true + w.namingClient.CloseClient() close(w.stop) w.Ready(false) }