lnd: add interrupt handler to handle shutdown requests while syncing

chain backend
This commit is contained in:
Wilmer Paulino committed 2018-05-23 11:26:07 -04:00
1 parent 5c42a88038
commit 4a200d28eb
3 files changed
+16 -14

No files matched your search

-5
View File
@@ -663,11 +663,6 @@ func (s *server) Stopped() bool {
return atomic.LoadInt32(&s.shutdown) != 0
}
// WaitForShutdown blocks until all goroutines have been stopped.
func (s *server) WaitForShutdown() {
s.wg.Wait()
}
// initNetworkBootstrappers initializes a set of network peer bootstrappers
// based on the server, and currently active bootstrap mechanisms as defined
// within the current configuration.