Rework AsyncSshHandler callback locking 22/102722/5
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 09:15:33 +0000 (11:15 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 11:57:25 +0000 (13:57 +0200)
commit0a29984645d407de655066110362261146464be1
tree97e0a136814e2ad05ae97d9b969b822c2e665292
parentf2cf330ae8041264a599b8f8b5652ee54716eb88
Rework AsyncSshHandler callback locking

We have top-half and bottom-half dispatch going on here, with both paths
acquiring the object lock. Unify callbacks and lock object before
deciding which path to take.

JIRA: NETCONF-905
Change-Id: Ic42a652ed06ea8bc90cbe504963cc1405dad7fdc
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandler.java