From: Jee Hyeok Kim Date: Mon, 4 Apr 2016 01:06:42 +0000 (+0900) Subject: Revert resource publish workaround code X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c1778e31abeb753b1f2b22a8cb60b59595a553b;p=contrib%2Fiotivity.git Revert resource publish workaround code Change-Id: I3ab0dc4e969ccd0beffeaf8997fccb057b4bc0e3 Signed-off-by: Jee Hyeok Kim Reviewed-on: https://gerrit.iotivity.org/gerrit/7551 Tested-by: jenkins-iotivity --- diff --git a/cloud/resourcedirectory/src/main/java/org/iotivity/cloud/rdserver/resources/ResourceDirectoryResource.java b/cloud/resourcedirectory/src/main/java/org/iotivity/cloud/rdserver/resources/ResourceDirectoryResource.java index 76076dd..b3f63e9 100644 --- a/cloud/resourcedirectory/src/main/java/org/iotivity/cloud/rdserver/resources/ResourceDirectoryResource.java +++ b/cloud/resourcedirectory/src/main/java/org/iotivity/cloud/rdserver/resources/ResourceDirectoryResource.java @@ -378,10 +378,10 @@ public class ResourceDirectoryResource extends Resource { Logger.i("drel : " + pubPayload.getDrel()); } - //if (tags.get(Constants.RS_TTL) != null) { - // pubPayload.setTtl((int) tags.get(Constants.RS_TTL)); - // Logger.i("ttl : " + pubPayload.getTtl()); - //} + if (tags.get(Constants.RS_TTL) != null) { + pubPayload.setTtl((int) tags.get(Constants.RS_TTL)); + Logger.i("ttl : " + pubPayload.getTtl()); + } ArrayList> publishLinks = (ArrayList>) payloadData .get(1);