Closed hieblmi closed 2 years ago
Most likely misuse of channels. The sub channel is closed in https://github.com/edouardparis/lntop/blob/449811ab43ea2ed947933fc52e648a1ca53730d1/ui/ui.go#L37 and it's incorrect because the same channel is used in pubsub as well. Channels should be closed by writers, not readers and especially not by unrelated entities (in this case UI). It creates a race condition and yeah, it happens sometimes. I propose not closing the event channel at all because it only needs to be closed when the app exits and at that point nothing matters anyway.
i think this should be closed as completed
A panic I just saw to be investigated: