IOT-3161 reverify2 77/26977/3
authorRap <peter.rafaj@kistler.com>
Tue, 3 Apr 2018 12:04:46 +0000 (14:04 +0200)
committerOndrej Tomcik <ondrej.tomcik@kistler.com>
Mon, 17 Sep 2018 14:01:39 +0000 (14:01 +0000)
Change-Id: I452e82f134341f247a296534f1d4f4c7e1d0d51e
Signed-off-by: Peter Rafaj <peter.rafaj@kistler.com>
cloud/stack/src/main/java/org/iotivity/cloud/base/device/CoapDevice.java

index c57627a..5d22eaf 100644 (file)
@@ -115,7 +115,6 @@ public class CoapDevice extends Device {
                 Long token = iterator.next();
                 CoapClient coapClient = (CoapClient) channel;
                 if (coapClient.isObserveRequest(token) != null) {
-                    coapClient.removeObserve(token);
                     CoapRequest coapRequest = (CoapRequest) mObserveRequestList
                             .get(token);
                     coapRequest.setObserve(Observe.UNSUBSCRIBE);