interface: Disconnect interfaces properly 08/291108/2 accepted/tizen/unified/20230411.161308
authorDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 10 Apr 2023 04:41:22 +0000 (13:41 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 10 Apr 2023 06:28:04 +0000 (15:28 +0900)
commit711f4023749573962f1a9724e8843d171eaac519
tree14b4ebcaf841a943c86ff34fa09760de5536fed2
parent7769a2bd5cc71827dbb39885064b76c60a3847bb
interface: Disconnect interfaces properly

Some interfaces can be connected automatically without host runs lthor
due to the characteristics of connection such as usb. So, even the
network interface is used for transmitting image, usb connection
thread may wait for handshake. Previously in this case, when flashing
via network is not completed successfully, usb cannot be
re-initialized since the previous usb connection is not closed
properly. Thus, this patch makes sure all interfaces are disconnected
when the flash-manager is terminated.

Change-Id: I019e75b0bb774c292a2d7c142c0d00c7942322e1
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/interface.c
src/interface.h