fix(container): Fix cpu surge when the container terminal executes exit (#8115)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -21s

This commit is contained in:
ssongliu 2025-03-10 23:47:50 +08:00 committed by GitHub
parent 402b41100b
commit 38ca2ddd01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,6 +72,7 @@ func (sws *LocalWsSession) masterWrite(data []byte) error {
func (sws *LocalWsSession) receiveWsMsg(exitCh chan bool) {
defer func() {
if r := recover(); r != nil {
setQuit(exitCh)
global.LOG.Errorf("A panic occurred during receive ws message, error message: %v", r)
}
}()