diff options
author | Wolfy-J <[email protected]> | 2018-06-05 16:56:12 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-05 16:56:12 +0300 |
commit | 3112f9b58c73773cea972fd79f04d33f8f7d7edd (patch) | |
tree | 334941e56becd1dde9fd1ce353e63d63775d772b /socket_factory.go | |
parent | 76ff8d1c95e087749d559ee5a4f8f0348feafffa (diff) |
Cs and refactoring
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 { |