mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
fix HandleCrash() order
This commit is contained in:
parent
d9c3d15018
commit
f0ad46f89f
@ -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