mirror of https://gitea.com/gitea/act_runner.git
reduce diff
This commit is contained in:
parent
c1c36d1c2d
commit
97c1320234
|
|
@ -176,17 +176,15 @@ func (r *Reporter) Fire(entry *log.Entry) error {
|
|||
}
|
||||
|
||||
func (r *Reporter) RunDaemon() {
|
||||
if r.ctx.Err() != nil {
|
||||
return
|
||||
}
|
||||
|
||||
r.stateMu.RLock()
|
||||
closed := r.closed
|
||||
r.stateMu.RUnlock()
|
||||
|
||||
if closed {
|
||||
return
|
||||
}
|
||||
if r.ctx.Err() != nil {
|
||||
return
|
||||
}
|
||||
|
||||
_ = r.ReportLog(false)
|
||||
_ = r.ReportState()
|
||||
|
|
|
|||
Loading…
Reference in New Issue