From 2c08a22ed3cb0c0fbb93ce4cab1a855785e2743d Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 24 Apr 2018 21:08:46 -0700 Subject: [PATCH] server: launch new invoiceRegistry goroutines on start up --- server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.go b/server.go index 12ccf2fc..2163fd1b 100644 --- a/server.go +++ b/server.go @@ -753,6 +753,10 @@ func (s *server) Start() error { } s.connMgr.Start() + if err := s.invoices.Start(); err != nil { + return err + } + // With all the relevant sub-systems started, we'll now attempt to // establish persistent connections to our direct channel collaborators // within the network. @@ -809,6 +813,7 @@ func (s *server) Stop() error { s.cc.chainView.Stop() s.connMgr.Stop() s.cc.feeEstimator.Stop() + s.invoices.Stop() // Disconnect from each active peers to ensure that // peerTerminationWatchers signal completion to each peer.