Before the change, if notifications or indications were not enabled by client and the server tried to send one, the request was quietly ignored. This might have caused issues when using suspend(), as such suspension would never finish.
After the change such request will return in a failure with status FailCallback.REASON_NOT_ENABLED. suspend() or await() methods should throw RequestFailedException with that status.
This PR fixes #474.
Before the change, if notifications or indications were not enabled by client and the server tried to send one, the request was quietly ignored. This might have caused issues when using
suspend()
, as such suspension would never finish. After the change such request will return in a failure with statusFailCallback.REASON_NOT_ENABLED
.suspend()
orawait()
methods should throwRequestFailedException
with that status.