mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-02 20:26:43 +00:00
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
@ -207,6 +207,7 @@ func (s *rpcServer) Stop() error {
|
|||||||
func newRPCServer(s *server) (*rpcServer, error) {
|
func newRPCServer(s *server) (*rpcServer, error) {
|
||||||
rpc := rpcServer{
|
rpc := rpcServer{
|
||||||
server: s,
|
server: s,
|
||||||
|
quit: make(chan int),
|
||||||
}
|
}
|
||||||
// Get values from config
|
// Get values from config
|
||||||
rpc.rpcport = cfg.RPCPort
|
rpc.rpcport = cfg.RPCPort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user