Open quozl opened 1 year ago
This is related to checking if handler_id is connected before disconnect.
abi.handler_block(self._abi_handler)
try:
logging.debug('Do abi %s' % do_abi_cb)
do_abi_cb()
finally:
abi.handler_unblock(self._abi_handler)
we also need to store
self._connected_handlers = [self._abi_handler]
then disconnect if connected
def disconnect_signal(self):
if self._abi_handler in self._connected_handlers:
abi.disconnect(self._abi_handler)
self._connected_handlers.remove(self._abi_handler)
I am unsure if i should generate pr.
The explanation seems reasonable. But I don't understand "unsure". What information do you need to make a pull request?
ok, will generate pr for review.
On Raspberry Pi OS, the Write activity logs
No impact.