Allow multiple calls on OCResource::observe().
authorZiran Sun <ziran.sun@samsung.com>
Tue, 13 Sep 2016 10:41:06 +0000 (11:41 +0100)
committerZiran Sun <ziran.sun@samsung.com>
Tue, 27 Sep 2016 09:09:19 +0000 (09:09 +0000)
commitfd94231af3b39f09b7075650fc6a89f87c256f9c
tree000c6bbc4347328d49fd178ae1be5cbeb1534f8b
parent2ebd9a3c8d6f9503f4026edea6c9720118fa46b2
Allow multiple calls on OCResource::observe().

Remove check against m_observeHandle in OCResource::observe().
This will allow mutliple calls on observe with different query
parameters.

Bug: https://jira.iotivity.org/browse/IOT-1115
Change-Id: I1bae9e8db8999bf6e805eec75ebcbe9f4af8b3c7
Signed-off-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11735
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Todd Malsbary <todd.malsbary@intel.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
(cherry picked from commit 66b4b024a7d317913c377949d94a298a4a224c42)
Reviewed-on: https://gerrit.iotivity.org/gerrit/11993
resource/src/OCResource.cpp