1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-15 22:59:43 +00:00

Fix crash when concurrent close channel (#612)

* Fix crash when concurrent close channel

* Add ErrCh to notify client's goruntine to exit

* Add WaitGroup to wait for all goruntine to exit

* Call Signal on error

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2023-05-09 18:10:01 +08:00
committed by GitHub
parent 30f26ef24f
commit 54ecfbee42
5 changed files with 121 additions and 89 deletions

View File

@@ -46,7 +46,7 @@ func loadNotifConfig() {
section, err := config.GetSection("notification")
if err != nil {
log.Fatal("No general section in seafile.conf.")
log.Fatal("No notification section in seafile.conf.")
}
host = "0.0.0.0"