You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1732892
Browse filesBrowse the repository at this point in the historyBrowse files
fix(aggregator): guard nil subscription in SubscribeToNewTasksV3 error goroutine
When the primary RPC WebSocket subscription fails on startup but the fallback
succeeds, the error-handling goroutine called sub.Err() on a nil event.Subscription
interface, causing an immediate nil pointer dereference panic.
Introduce nilSafeErrCh() which returns a never-sending channel when the
subscription is nil, so the select statement in the goroutine degrades
gracefully instead of panicking.
Resubscription after a recovered error now also updates the local channel
variable (subErrCh / subFallbackErrCh) so the fix stays effective throughout
the lifetime of the goroutine.
Fixes#2293
0 commit comments