Fixed bug where InvalidParam exception thrown on re-observe
authorErich Keane <erich.keane@intel.com>
Tue, 18 Nov 2014 22:23:14 +0000 (14:23 -0800)
committerErich Keane <erich.keane@intel.com>
Tue, 18 Nov 2014 22:23:14 +0000 (14:23 -0800)
commitd50eb50566cc22792588ed7365a8084566f8680f
tree67f6bc2ee76252446c071c64353f3eb5ccc74606
parent590b5958ea16dcb2f8bb6c0a559ed32ff24af886
Fixed bug where InvalidParam exception thrown on re-observe

Observing a resource more than once isn't allowed.  However, we were
not clearing the "Observation Handle" on observation cancel.  This
patch resets the observe handle to nullptr when cancelling observation
so that we can re-observe after cancelling.

Change-Id: I507a427e641ad08c5e48e2dea4c5b7b3d0e3a79b
Signed-off-by: Erich Keane <erich.keane@intel.com>
resource/src/OCResource.cpp