mirror of
https://github.com/lightninglabs/faraday.git
synced 2026-08-13 12:33:35 +02:00
faraday: intercept shutdown signals
This commit is contained in:
parent
c924402d15
commit
0d3293f2c0
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ func Main() error {
|
|||
},
|
||||
)
|
||||
|
||||
// Catch intercept signals, then start the server.
|
||||
signal.Intercept()
|
||||
if err := server.Start(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue