Commit 60f204e4 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device - gNMI OpenConfig Driver:

- Refining code
parent 1dbc6bdb
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -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