Fix mtp exit 07/172907/3
authorPaweł Szewczyk <p.szewczyk@samsung.com>
Fri, 16 Mar 2018 16:18:40 +0000 (17:18 +0100)
committersaerome kim <saerome.kim@samsung.com>
Thu, 5 Apr 2018 10:02:39 +0000 (10:02 +0000)
commite60e0d7651a397e509bda76ea140ec0a294cbd2f
tree288ddc30cf2b0a53f7a527f7f2f088bff31875f6
parentf3e40f271ca8c93b1027fb8dec237a3cae831857
Fix mtp exit

This allows to call exit function from event handler thread. Without it
the g_main_loop could hang after event handler stopped.

Also debug info was fixed: the "mtp terminated" message appears when mtp
is actualy terminating.

Change-Id: I970bc927221374705b66aadf24ec0bdc49dac601
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
src/mtp_event_handler.c
src/mtp_init.c