From 766869ce39fe5a1e82716f543e304c732668389a Mon Sep 17 00:00:00 2001 From: Zsolt Felfoldi Date: Thu, 6 Jun 2024 14:55:49 +0200 Subject: [PATCH] beacon/light/api: fixed double stream.Close() --- beacon/light/api/light_api.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/beacon/light/api/light_api.go b/beacon/light/api/light_api.go index 903db57344..6f60fc0cc6 100755 --- a/beacon/light/api/light_api.go +++ b/beacon/light/api/light_api.go @@ -494,9 +494,6 @@ func (api *BeaconLightApi) StartHeadListener(listener HeadEventListener) func() for { select { - case <-ctx.Done(): - stream.Close() - case event, ok := <-stream.Events: if !ok { log.Trace("Event stream closed")