gatt: Fix attempting to create device on disconnection
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 2 Oct 2018 08:18:31 +0000 (11:18 +0300)
committerhimanshu <h.himanshu@samsung.com>
Tue, 14 Jan 2020 08:53:35 +0000 (14:23 +0530)
commit7347669ec46df45fb74768d06740981d0c209081
tree530632eb7818981e649a6800755190a063b238b9
parentd16458a56f59d5ae5dab529c7ac4ac50b6b0e691
gatt: Fix attempting to create device on disconnection

If ATT is disconnected and the state points to an invalid device it
must have been destroyed in the meantime and should not be recreated.

Change-Id: I60d5bafb0130188ce718b38a02e8008b151a5750
Signed-off-by: himanshu <h.himanshu@samsung.com>
src/gatt-database.c