Skip to content
Snippets Groups Projects
Commit 5c9a2b46 authored by Jake Taylor's avatar Jake Taylor
Browse files

more cleanup

parent ece1b708
Branches
No related tags found
No related merge requests found
......@@ -9,6 +9,8 @@ import (
"io/fs"
"io/ioutil"
"os"
"os/signal"
"syscall"
"time"
"gitlab.com/elixxir/client/connect"
......@@ -179,5 +181,17 @@ func main() {
// Keep app running to receive messages-----------------------------------------------
select {}
// Wait until the user terminates the program
c := make(chan os.Signal)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
<-c
err = e2eClient.StopNetworkFollower()
if err != nil {
jww.ERROR.Printf("Failed to stop network follower: %+v", err)
} else {
jww.INFO.Printf("Stopped network follower.")
}
os.Exit(0)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment