From ff4c6537709b6cd7331bb9d72d1956c213b45427 Mon Sep 17 00:00:00 2001 From: Jason Woods Date: Thu, 30 Apr 2020 19:07:50 +0100 Subject: [PATCH] Fix uninitialised lists --- lc-lib/endpoint/sink.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lc-lib/endpoint/sink.go b/lc-lib/endpoint/sink.go index 9c95b45c..022288f8 100644 --- a/lc-lib/endpoint/sink.go +++ b/lc-lib/endpoint/sink.go @@ -54,6 +54,11 @@ func NewSink(config *config.Network) *Sink { timeoutTimer: time.NewTimer(1 * time.Second), } + ret.timeoutList.Init() + ret.readyList.Init() + ret.failedList.Init() + ret.orderedList.Init() + ret.timeoutTimer.Stop() return ret