Skip to content

Commit f9591b3

Browse files
committed
fix: always close --watch socket
1 parent d33b19b commit f9591b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runner/runner.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ func (p *GazelleRunner) Watch(watchAddress string, cmd GazelleCommand, mode Gaze
212212
return fmt.Errorf("failed to connect to watchman: %w", err)
213213
}
214214

215+
defer watch.Disconnect()
216+
215217
// Params for the underlying gazelle call
216218
fixArgs := p.prepareGazelleArgs(mode, args)
217219

0 commit comments

Comments
 (0)