From d44d253dffa14636eba935340892c765946662fa Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sun, 20 Oct 2013 11:05:35 -0500 Subject: [PATCH] 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. --- rpcserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcserver.go b/rpcserver.go index f7077222..20fdc3c0 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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