From a7d4febd2b6139d9cbb6c8987e3ed9f49c53c8f0 Mon Sep 17 00:00:00 2001 From: Kaushal_26 Date: Sat, 17 May 2025 19:13:45 +0530 Subject: [PATCH] feat: Add client.CloseWatch() to exit watch mode in Run function - Handles multiple watch commands after killing one command, other executes as required --- ironhawk/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ironhawk/main.go b/ironhawk/main.go index 9a0d3d5..a15f07b 100644 --- a/ironhawk/main.go +++ b/ironhawk/main.go @@ -121,6 +121,7 @@ func Run(host string, port int) { case <-sigChanWatchMode: fmt.Println("exiting the watch mode. back to command mode") shouldExitWatchMode = true + client.CloseWatch() case resp := <-ch: // If we get any response over the watch channel, // render the response