summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-21 13:25:36 +0300
committerValery Piashchynski <[email protected]>2021-01-21 13:25:36 +0300
commit7da6c78449776e1f3c6716250bca0b712a0423a4 (patch)
treef3512de66aca2bba408485a0ea2fc936c0e4fb9b /pkg
parent0ff05b2732b4fd0783f959c94c54d7e39169f979 (diff)
Uniform all configs
Add debug server Check nil's for all plugin intialization
Diffstat (limited to 'pkg')
-rwxr-xr-xpkg/worker/worker.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/worker/worker.go b/pkg/worker/worker.go
index aef7f2b0..4d4ca09b 100755
--- a/pkg/worker/worker.go
+++ b/pkg/worker/worker.go
@@ -224,6 +224,8 @@ func (w *Process) Wait() error {
w.state.Set(internal.StateStopped)
}
+ w.stderr.Reset()
+
return nil
}
@@ -307,6 +309,7 @@ func (w *Process) watch() {
w.mu.Lock()
// write new message
w.stderr.Write((*buf)[:n])
+ w.stderr.Reset()
w.mu.Unlock()
w.put(buf)
}