Skip to content

change stop() close reader first - #574

Merged
wonderflow merged 1 commit into
qiniu:masterfrom
wonderflow:fix2
Jun 28, 2018
Merged

wonderflow merged 1 commit into
qiniu:masterfrom
wonderflow:fix2

Conversation

@wonderflow

Copy link
Copy Markdown
Contributor

Fixes [issue number]

Changes

  • feature1
  • feature2
  • fixbug1
  • fixbug2

Reviewers

  • @[someone] please review
  • @[someotherone] please review

Wiki Changes

  • options1...
  • options2...

Checklist

  • Rebased/mergeable
  • Tests pass
  • Wiki updated

Comment thread mgr/runner.go
log.Warnf("runner %v has been stopped", r.Name())
case <-timer.C:
log.Errorf("runner %v exited timeout, start to force stop", r.Name())
atomic.AddInt32(&r.stopped, 1)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在方法的第一行 Line 713 有相同的一行,这两行是有不同作用吗?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

类似双保险吧

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

实际上是相同作用

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@unknwon

unknwon commented Jun 28, 2018

Copy link
Copy Markdown
Contributor

LGTM

@wonderflow
wonderflow merged commit 5db592b into qiniu:master Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants