Hold the event source when there are no listeners #15725

Merged
lunny merged 9 commits from no-notifications-when-no-listeners into main 2021-05-15 21:46:13 +00:00
Contributor

The event source does not need to run when there are no listeners. Therefore
pause it when there are none.

Fixes #15542

Signed-off-by: Andrew Thornton art27@cantab.net

The event source does not need to run when there are no listeners. Therefore pause it when there are none. Fixes #15542 Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath reviewed 2021-05-04 22:06:23 +00:00
Author
Contributor
```suggestion ```
Author
Contributor
					select {
					  case <-timer.C:
					  default:
					}
```suggestion select { case <-timer.C: default: } ```
zeripath reviewed 2021-05-04 22:30:07 +00:00
Author
Contributor
					default:
```suggestion default: ```
Author
Contributor
					case <-timer.C:
```suggestion case <-timer.C: ```
silverwind (Migrated from github.com) approved these changes 2021-05-06 23:17:11 +00:00
6543 (Migrated from github.com) approved these changes 2021-05-15 19:41:12 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#15725
No description provided.