diff options
Diffstat (limited to 'socket_factory.go')
-rw-r--r-- | socket_factory.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/socket_factory.go b/socket_factory.go index 161712e0..a77758e9 100644 --- a/socket_factory.go +++ b/socket_factory.go @@ -40,9 +40,9 @@ func NewSocketFactory(ls net.Listener, tout time.Duration) *SocketFactory { } // SpawnWorker creates worker and connects it to appropriate relay or returns error -func (f *SocketFactory) SpawnWorker(cmd *exec.Cmd) (w *Worker, workerError error) { - if w, workerError = newWorker(cmd); workerError != nil { - return nil, workerError +func (f *SocketFactory) SpawnWorker(cmd *exec.Cmd) (w *Worker, err error) { + if w, err = newWorker(cmd); err != nil { + return nil, err } if err := w.Start(); err != nil { |