Drain notification registeration channel.

This prevents a hang when attempting to set the wallet (and register
for wallet notifications) when the process is interrupted and the rpc
server begins shutting down.
This commit is contained in:
Josh Rickmar 2014-07-29 08:36:28 -05:00
parent 2b5eefae56
commit 400153d7c0

View file

@ -1174,6 +1174,7 @@ func (s *rpcServer) drainNotifications() {
case <-s.minedDebits:
case <-s.confirmedBalance:
case <-s.unconfirmedBalance:
case <-s.registerWalletNtfns:
}
}
}