mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-17 22:24:21 +01:00
signal: initialize interceptor explictly
This commit is contained in:
@@ -26,7 +26,8 @@ var (
|
||||
shutdownChannel = make(chan struct{})
|
||||
)
|
||||
|
||||
func init() {
|
||||
// Intercept starts the interception of interrupt signals.
|
||||
func Intercept() {
|
||||
signalsToCatch := []os.Signal{
|
||||
os.Interrupt,
|
||||
os.Kill,
|
||||
|
||||
Reference in New Issue
Block a user