Fix the crash of socket disconnection 76/27076/1
authorwu zheng <wu.zheng@intel.com>
Thu, 4 Sep 2014 06:59:42 +0000 (14:59 +0800)
committerwu zheng <wu.zheng@intel.com>
Thu, 4 Sep 2014 06:59:42 +0000 (14:59 +0800)
commit9ed01453e45e36dcefc2f7f00fc19e759ff48ef5
tree3d611cd1fb5e567ae6ef3b0a1108b4f22af6cc45
parent17cca5cc8abbd4a4fb451b36f0bda57abbda8134
Fix the crash of socket disconnection

When socket disconnection, channel is needed to report fd handle.
However, channel has been removed.
It results in the crash and fix it.

BTW, remove unuseful source code.

Change-Id: I8cfd02e7fd6dddd6e5540dc18acbc22f3031ece4
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
capi/bluetooth.c