1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-24 08:02:18 +02:00

fixed missing live console output bug on rebuild

This commit is contained in:
Eichin David 2014-10-24 23:25:56 +02:00
parent 39a9b2f316
commit 6359da3296

View File

@ -68,7 +68,7 @@ func (d *Docker) Do(c context.Context, r *worker.Work) {
commitc := pubsub.Register(c, "_global")
commitc.Publish(r)
stdoutc := pubsub.RegisterOpts(c, r.Commit.ID, pubsub.ConsoleOpts)
defer stdoutc.Close()
defer pubsub.Unregister(c, r.Commit.ID)
// create a special buffer that will also
// write to a websocket channel