fix for #2480
This commit is contained in:
parent
a1d270a253
commit
eb96456909
3 changed files with 6 additions and 3 deletions
|
@ -118,7 +118,7 @@ pipeline:
|
|||
image: plugins/docker
|
||||
repo: drone/drone
|
||||
secrets: [ docker_username, docker_password ]
|
||||
tag: [ 0.8, 0.8.6 ]
|
||||
tag: [ 0.8, 0.8.7 ]
|
||||
when:
|
||||
event: tag
|
||||
|
||||
|
@ -127,7 +127,7 @@ pipeline:
|
|||
repo: drone/agent
|
||||
dockerfile: Dockerfile.agent
|
||||
secrets: [ docker_username, docker_password ]
|
||||
tag: [ 0.8, 0.8.6 ]
|
||||
tag: [ 0.8, 0.8.7 ]
|
||||
when:
|
||||
event: tag
|
||||
|
||||
|
|
|
@ -188,6 +188,9 @@ func LogStreamSSE(c *gin.Context) {
|
|||
go func() {
|
||||
// TODO remove global variable
|
||||
Config.Services.Logs.Tail(ctx, fmt.Sprint(proc.ID), func(entries ...*logging.Entry) {
|
||||
defer func() {
|
||||
recover() // fix #2480
|
||||
}()
|
||||
for _, entry := range entries {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
|
|
|
@ -22,7 +22,7 @@ var (
|
|||
// VersionMinor is for functionality in a backwards-compatible manner.
|
||||
VersionMinor int64 = 8
|
||||
// VersionPatch is for backwards-compatible bug fixes.
|
||||
VersionPatch int64 = 6
|
||||
VersionPatch int64 = 7
|
||||
// VersionPre indicates prerelease.
|
||||
VersionPre string
|
||||
// VersionDev indicates development branch. Releases will be empty string.
|
||||
|
|
Loading…
Reference in a new issue