diff options
Diffstat (limited to 'socket_factory.go')
-rw-r--r-- | socket_factory.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/socket_factory.go b/socket_factory.go index c7fe639d..70f70f30 100644 --- a/socket_factory.go +++ b/socket_factory.go @@ -70,6 +70,11 @@ func (f *SocketFactory) SpawnWorker(cmd *exec.Cmd) (w *Worker, err error) { return w, nil } +// Close socket factory and underlying socket connection. +func (f *SocketFactory) Close() error { + return f.ls.Close() +} + // listens for incoming socket connections func (f *SocketFactory) listen() { for { |