OSDN Git Service

shared/gatt-client: Don't clear db in case of errors
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 1 Dec 2016 09:21:01 +0000 (11:21 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 2 Dec 2016 11:31:44 +0000 (13:31 +0200)
commite43847bc6bf27d731657baed9a816d3bd42861db
treecfc3db5c2991616ebd97677bec276c9a3a56cc86
parentf51cf03f8415198404198f7e1334ded6fdb72db4
shared/gatt-client: Don't clear db in case of errors

If the db was not empty when initializing the instance set the
discovery last handle to avoid clearing the database in case of
cache validation error.
src/shared/gatt-client.c