Replaced channel pointer field with non pointer channel

This commit is contained in:
Bas van Kervel
2015-04-19 09:55:41 +02:00
parent ead3dd9759
commit 2c229bac00
2 changed files with 14 additions and 11 deletions

View File

@ -45,7 +45,7 @@ func Start(pipe *xeth.XEth, config RpcConfig) error {
c := cors.New(opts)
handler = NewStoppableHandler(c.Handler(JSONRPC(pipe)), l.stop)
} else {
handler = JSONRPC(pipe)
handler = NewStoppableHandler(JSONRPC(pipe), l.stop)
}
go http.Serve(l, handler)