[FIX] move sampling stop after terminate app
authorNikita Kalyazin <n.kalyazin@samsung.com>
Wed, 3 Jul 2013 07:38:25 +0000 (11:38 +0400)
committerNikita Kalyazin <n.kalyazin@samsung.com>
Wed, 3 Jul 2013 07:38:25 +0000 (11:38 +0400)
daemon/daemon.c

index af2f2f0..cad7bcc 100644 (file)
@@ -419,8 +419,9 @@ static void terminate_all_target()
 void terminate_all()
 {
        int i;
-       samplingStop();
+
        terminate_all_target();
+       samplingStop();
 
        // wait for all other thread exit
        for(i = 0; i < MAX_TARGET_COUNT; i++)