Fix build.

This commit is contained in:
Josh Rickmar 2014-07-28 09:51:49 -05:00
parent c908a44665
commit 549d0920f1

View file

@ -532,7 +532,7 @@ func (s *rpcServer) SetWallet(wallet *Wallet) {
// if the chain RPC client connection is set and connected. This is // if the chain RPC client connection is set and connected. This is
// run as a goroutine since it must acquire the handlerLock, which is // run as a goroutine since it must acquire the handlerLock, which is
// locked here. // locked here.
go s.notifyChainServerConnected(chainSvrConnected) go wallet.notifyChainServerConnected(chainSvrConnected)
} }
// SetChainServer sets the chain server client component needed to run a fully // SetChainServer sets the chain server client component needed to run a fully
@ -554,13 +554,13 @@ func (s *rpcServer) SetChainServer(chainSvr *chain.Client) {
// With both the chain server and wallet set, all handlers are // With both the chain server and wallet set, all handlers are
// ok to run. // ok to run.
s.handlerLookup = lookupAnyHandler s.handlerLookup = lookupAnyHandler
}
// Make sure already connected websocket clients get a notification // Make sure already connected websocket clients get a
// if the chain RPC client connection is set and connected. This is // notification if the chain RPC client connection is set and
// run as a goroutine since it must acquire the handlerLock, which is // connected. This is run as a goroutine since it must acquire
// locked here. // the handlerLock, which is locked here.
go s.notifyChainServerConnected(!chainSvr.Disconnected()) go s.wallet.notifyChainServerConnected(!chainSvr.Disconnected())
}
} }
// HandlerClosure creates a closure function for handling requests of the given // HandlerClosure creates a closure function for handling requests of the given