Make quit channel with RPC server.

The latest websockets code added a quit channel to the RPC server, but did
not initialize it.  This commit corrects that so shutdown works properly
again.
This commit is contained in:
Dave Collins 2013-10-20 11:05:35 -05:00
parent 0abfdcc88b
commit d44d253dff

View file

@ -207,6 +207,7 @@ func (s *rpcServer) Stop() error {
func newRPCServer(s *server) (*rpcServer, error) {
rpc := rpcServer{
server: s,
quit: make(chan int),
}
// Get values from config
rpc.rpcport = cfg.RPCPort