1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Prevent deadlock in create issue (#17970)

This commit is contained in:
zeripath
2021-12-13 22:59:39 +00:00
committed by GitHub
parent 39eb82446c
commit eba07867ef
3 changed files with 11 additions and 5 deletions

View File

@@ -141,7 +141,7 @@ func (issue *Issue) isTimetrackerEnabled(ctx context.Context) bool {
log.Error(fmt.Sprintf("loadRepo: %v", err))
return false
}
return issue.Repo.IsTimetrackerEnabled()
return issue.Repo.IsTimetrackerEnabledCtx(ctx)
}
// GetPullRequest returns the issue pull request