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:
parent
0abfdcc88b
commit
d44d253dff
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue