fix coap callback typo

This commit is contained in:
ShvaykaD 2021-06-23 19:17:14 +03:00 committed by Andrew Shvayka
parent d451768302
commit 8e5c82d8c8

View File

@ -302,7 +302,7 @@ public class CoapTransportResource extends AbstractCoapTransportResource {
attributeSubscriptions.remove(attrSessionId);
transportService.process(attrSession,
TransportProtos.SubscribeToAttributeUpdatesMsg.newBuilder().setUnsubscribe(true).build(),
new CoapNoOpCallback(exchange));
new CoapOkCallback(exchange, CoAP.ResponseCode.DELETED, CoAP.ResponseCode.INTERNAL_SERVER_ERROR));
}
closeAndDeregister(sessionInfo);
break;