Loading src/device/service/drivers/gnmi_openconfig/handlers/Interface.py +9 −5 Original line number Diff line number Diff line Loading @@ -89,11 +89,15 @@ class InterfaceHandler(_Handler): LOGGER.warning('Releasing...') while not objects_to_free.empty(): LOGGER.warning('Getting...') obj = objects_to_free.get() try: obj = objects_to_free.get_nowait() LOGGER.warning('Releasing: {:s} => {:s}'.format( str(obj.path()), str(obj.print_mem('json')) )) obj.free() except queue.Empty: LOGGER.warning('No more objects...') continue LOGGER.warning('Release done') return str_path, str_data Loading Loading
src/device/service/drivers/gnmi_openconfig/handlers/Interface.py +9 −5 Original line number Diff line number Diff line Loading @@ -89,11 +89,15 @@ class InterfaceHandler(_Handler): LOGGER.warning('Releasing...') while not objects_to_free.empty(): LOGGER.warning('Getting...') obj = objects_to_free.get() try: obj = objects_to_free.get_nowait() LOGGER.warning('Releasing: {:s} => {:s}'.format( str(obj.path()), str(obj.print_mem('json')) )) obj.free() except queue.Empty: LOGGER.warning('No more objects...') continue LOGGER.warning('Release done') return str_path, str_data Loading