Conform to TMSP NewServer

This commit is contained in:
Jae Kwon
2016-02-21 23:44:43 -08:00
parent 3235172a74
commit 479ef98ec6
+2 -1
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()
})
}