summaryrefslogtreecommitdiff
path: root/socket_factory.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-28 15:49:05 +0300
committerWolfy-J <[email protected]>2018-01-28 15:49:05 +0300
commit7e485c92cd7b745d4a0926c905e20dc68569ffbd (patch)
tree30f0355863699d2a59db8d480c28c33379542201 /socket_factory.go
parent2390c945478ad2bb00ab73ea98aad50a42d64f0b (diff)
stop by worker
Diffstat (limited to 'socket_factory.go')
-rw-r--r--socket_factory.go6
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 {