Conform to TMSP NewServer

This commit is contained in:
Jae Kwon 2016-02-21 23:44:43 -08:00
parent 3235172a74
commit 479ef98ec6
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func main() {
}
// Start the listener
_, err = server.StartListener(*addrPtr, app)
svr, err := server.NewServer(*addrPtr, app)
if err != nil {
Exit("create listener: " + err.Error())
}
@ -56,6 +56,7 @@ func main() {
// Wait forever
TrapSignal(func() {
// Cleanup
svr.Stop()
})
}