mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Merge pull request #93108 from lixiaobing1/lxb-HandleCrash2
fix HandleCrash() order
This commit is contained in:
commit
08d62502fa
@ -97,9 +97,9 @@ func (sw *StreamWatcher) stopping() bool {
|
||||
|
||||
// receive reads result from the decoder in a loop and sends down the result channel.
|
||||
func (sw *StreamWatcher) receive() {
|
||||
defer utilruntime.HandleCrash()
|
||||
defer close(sw.result)
|
||||
defer sw.Stop()
|
||||
defer utilruntime.HandleCrash()
|
||||
for {
|
||||
action, obj, err := sw.source.Decode()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user