Release semaphore after disconnection 26/112226/3
authorPeter Suna <peter.suna@pantheon.tech>
Tue, 18 Jun 2024 16:13:36 +0000 (18:13 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Wed, 26 Jun 2024 14:32:15 +0000 (14:32 +0000)
commit3c8f8344ef76007937f3738848da4146dc70e455
tree967f4dce4a08a28777afbc1e3eda9dd279317caf
parente04fa4826f9d416b4b8e20e61f31e33fac3d6646
Release semaphore after disconnection

Ensure semaphore is released when requests are removed in
the tearDown method. This ensures that the concurrent RPC
limit corresponds accurately to the actual requests.

JIRA: NETCONF-1332
Change-Id: Id677b5d05805d50c193235f6b2a594bb76f0ef59
Signed-off-by: Peter Suna <peter.suna@pantheon.tech>
plugins/netconf-client-mdsal/src/main/java/org/opendaylight/netconf/client/mdsal/NetconfDeviceCommunicator.java
plugins/netconf-client-mdsal/src/test/java/org/opendaylight/netconf/client/mdsal/NetconfDeviceCommunicatorTest.java