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:
parent
2b5eefae56
commit
400153d7c0
|
@ -1174,6 +1174,7 @@ func (s *rpcServer) drainNotifications() {
|
||||||
case <-s.minedDebits:
|
case <-s.minedDebits:
|
||||||
case <-s.confirmedBalance:
|
case <-s.confirmedBalance:
|
||||||
case <-s.unconfirmedBalance:
|
case <-s.unconfirmedBalance:
|
||||||
|
case <-s.registerWalletNtfns:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue