Add controller thread unref function 43/146143/1 accepted/tizen/unified/20170828.164238 submit/tizen/20170828.021841
authorjh8801.jung <jh8801.jung@samsung.com>
Fri, 25 Aug 2017 06:19:48 +0000 (15:19 +0900)
committerjh8801.jung <jh8801.jung@samsung.com>
Fri, 25 Aug 2017 06:21:08 +0000 (15:21 +0900)
Signed-off-by: jh8801.jung <jh8801.jung@samsung.com>
Change-Id: I72eb984a58c8bf1efa97d4d207dfac81bacee884

packaging/mtp-initiator.spec
src/daemon/mtp_daemon.c

index 11b54abd50ecf68444d2e80c1c57200740ec25f2..f37437dd69d5103f282cc385092e2316a904c4d8 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       mtp-initiator
 Summary:    mtp(media transfer protocol) initiator
-Version:    1.4.24
+Version:    1.4.25
 Release:    0
 Group:      Network & Connectivity/Other
 License:    Apache-2.0
index bc089721dd2ad586f809fc396f01eb09f60475c7..75918a4bfde91905def34ef21b7bd44bd8f372c8 100755 (executable)
@@ -67,6 +67,9 @@ static mtp_error_e __daemon_deinitalize(mtp_context *mtp_ctx)
        if (ret != MTP_ERROR_NONE)
                return ret;
 
+       if (mtp_ctx->c_thread != NULL)
+               g_thread_unref(mtp_ctx->c_thread);
+
        g_main_loop_unref(mtp_ctx->main_loop);
        g_free(mtp_ctx);
 
@@ -105,7 +108,7 @@ int main(int argc, char *argv[])
        mtp_error_e ret = MTP_ERROR_NONE;
        struct sigaction sigact;
 
-       MTP_LOGI("mtp initiator start");
+       MTP_LOGE("mtp initiator start");
 
        remove(MTP_DB_FILE);
 
@@ -151,7 +154,7 @@ EXIT:
        if (ret != MTP_ERROR_NONE)
                MTP_LOGE("daemon deinitalize is failed");
 
-       MTP_LOGI("mtp initiator exit");
+       MTP_LOGE("mtp initiator exit");
 
        return 0;
 }