Fix rfcomm disconnected event not occured issue 20/234020/1
authorWootak Jung <wootak.jung@samsung.com>
Thu, 21 May 2020 06:20:45 +0000 (15:20 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 21 May 2020 06:26:17 +0000 (15:26 +0900)
commit9c4162ae24ca526a431378c7032ce87087a0e4ba
treeb91ab9456cf6ce50e32755b0f98faefad2c8ddde
parentf693e2270a04917b1004cb8c7504d55aa94badfd
Fix rfcomm disconnected event not occured issue

In case rfcomm disconnect operation is done on server side,
disconnected event is not occured on client side because
registration connection and unregistration connection are
different.

If shared connection was in used for registration, shared
connection also should be used for unregistration. Otherwise,
each owner name will be different.

For example,
Owner name of shared connection - :1.219
Owner name of private connection - :1.218

Change-Id: I44a08fda3618f94e674ab09fb189181e720b9226
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-api/bt-common.c