mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
df2ecd6bc5
This commit fixes a potential blocking when notifying invoice updates. When a new subscription client is created followed by an immediate cancel, it's likely the client will be removed from the registry's map(noop) and then added to its map again. This subscription will then be kept in registry until lnd is restarted. Another more serious issue is when multiple subscriptions are made for the same invoice, when the above case happens, other subscriptions may never send invoice updates because a previous client has a stopped notification queue that blocks following notifications. |
||
---|---|---|
.. | ||
addinvoice.go | ||
config_active.go | ||
config_default.go | ||
driver.go | ||
invoices_grpc.pb.go | ||
invoices_server.go | ||
invoices.pb.go | ||
invoices.pb.gw.go | ||
invoices.pb.json.go | ||
invoices.proto | ||
invoices.swagger.json | ||
invoices.yaml | ||
log.go | ||
utils.go |