There was a `notify` variable to keep track whether a subscriber is
authorEtan Kissling <etan.kissling@gmail.com>
Tue, 10 Aug 2021 20:15:09 +0000 (21:15 +0100)
committerSimon Kelley <simon@thekelleys.org.uk>
Tue, 10 Aug 2021 20:15:09 +0000 (21:15 +0100)
commitea43234c868e4136d900f35a19aaedcfd9f96c70
tree739bce140ef5003fac04ca4810417d99266ffbd6
parent867e56a45eef762d61193c798345a0f4f80ee7ec
There was a `notify` variable to keep track whether a subscriber is
observing our UBus object. However, it was not properly cleaned up in
`ubus_destroy`, potentially becoming stale over UBus reconnections.
The variable was removed and the current state is examined when sending
notifications, similarly as is done in other existing OpenWrt code.

Signed-off-by: Etan Kissling <etan.kissling@gmail.com>
src/ubus.c