mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-16 02:17:02 +08:00
fix(container): Fix cpu surge when the container terminal executes exit (#8115)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -21s
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -21s
This commit is contained in:
parent
402b41100b
commit
38ca2ddd01
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Add table
Reference in a new issue