fix(container): Fix cpu surge when the container terminal executes exit (#8115)

This commit is contained in:
ssongliu
2025-03-10 23:47:50 +08:00
committed by GitHub
parent 402b41100b
commit 38ca2ddd01
@@ -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)
}
}()