fix: watch client ping err fails to close ws conn

This commit is contained in:
lyyyuna 2021-06-24 17:28:33 +08:00
parent b6ac5603ed
commit 205247b8ec

View File

@ -194,6 +194,8 @@ func (gs *gocServer) watchProfileUpdate(c *gin.Context) {
break break
} }
} }
gwc.once.Do(func() { close(gwc.exitCh) })
}() }()
<-gwc.exitCh <-gwc.exitCh