mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +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.
|
// receive reads result from the decoder in a loop and sends down the result channel.
|
||||||
func (sw *StreamWatcher) receive() {
|
func (sw *StreamWatcher) receive() {
|
||||||
|
defer utilruntime.HandleCrash()
|
||||||
defer close(sw.result)
|
defer close(sw.result)
|
||||||
defer sw.Stop()
|
defer sw.Stop()
|
||||||
defer utilruntime.HandleCrash()
|
|
||||||
for {
|
for {
|
||||||
action, obj, err := sw.source.Decode()
|
action, obj, err := sw.source.Decode()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user