mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-14 08:28:36 -07:00
udp: Add UDP configuration, move tracker shutdown to the main package
This commit is contained in:
@@ -78,5 +78,10 @@ func Boot() {
|
||||
}
|
||||
|
||||
http.Serve(cfg, tkr)
|
||||
|
||||
if err := tkr.Close(); err != nil {
|
||||
glog.Errorf("Failed to shut down tracker cleanly: %s", err.Error())
|
||||
}
|
||||
|
||||
glog.Info("Gracefully shut down")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user