]> source.dussan.org Git - gitea.git/commit
Hold the event source when there are no listeners (#15725)
authorzeripath <art27@cantab.net>
Sat, 15 May 2021 21:46:13 +0000 (22:46 +0100)
committerGitHub <noreply@github.com>
Sat, 15 May 2021 21:46:13 +0000 (23:46 +0200)
commit8e32eeb5deed2da2dc2a648f62cba2613b566f71
tree3a253b370978be5438e78c88c2adbdf479b8af5e
parentf582ec4e5367f77d6b3085540a56fed818d6c638
Hold the event source when there are no listeners (#15725)

* Hold the event source when there are no listeners

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

* add some more logging

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/eventsource/manager.go
modules/eventsource/manager_run.go