The get_session_timeout call returns an errorCode. If the errorCode is present or the timeout is 0 then handle the condition to restart the discovery.
Fixed with checkin #7754
Fixed with checkin #7754