Fix web-socket timeout closure exceptions 23/104423/6
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>
Wed, 15 Feb 2023 13:58:40 +0000 (15:58 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 1 Mar 2023 12:52:30 +0000 (13:52 +0100)
commit0d05f5be80762b833acc0b8337b68b353e4c673a
tree83e9076ff87323978ac59a4c866edc797b03816d
parentae13eecd3f9863754d5dc9a0feb5a22e708f12d0
Fix web-socket timeout closure exceptions

As noted in WebSocketSessionHandler.onWebSocketClosed(), there is no
guarantee the session reports isOpen(). Performing the same check in
AbstractCommonSubscriber.removeSubscriber() (via isConnected()) can
therefore result in an ISE.

Fix this by removing the check.

JIRA: NETCONF-970
Change-Id: I6e437d9821e698e3faca121402a97b88ac486229
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/AbstractCommonSubscriber.java