Fix deviced hang problem when changing usb debug menu quickly 58/234558/1
authorINSUN PYO <insun.pyo@samsung.com>
Wed, 6 May 2020 10:21:47 +0000 (19:21 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 27 May 2020 06:44:42 +0000 (15:44 +0900)
commitb45fca1a05e7bb8ae39ad06de806fe52bdef8542
treeed2f97806ed010adc229578059041b18dec3f872
parent79887aff94f50c5b626990695f6c8e83d7a3029a
Fix deviced hang problem when changing usb debug menu quickly

If you change the usb debug menu quickly,
a new vconf request comes in the middle of the vconf change and the state is twisted.
As a result, deviced process the vconf handler indefinitely.

If you change the usb debug menu slowly, deviced process vconfs in order, so there is no problem.

Solution: when changing the usb mode through the usb debug menu, do not change the usb debug vconf.

Change-Id: Ie274844fc306c2bf7c3b873a66c338d635d9b760
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/usb/usb-dbus.c
src/usb/usb-debug.c
src/usb/usb-tethering.c
src/usb/usb.c
src/usb/usb.h