fix stop effect function
authorj-zero.hwang <j-zero.hwang@samsung.com>
Fri, 15 Mar 2013 10:52:58 +0000 (19:52 +0900)
committerj-zero.hwang <j-zero.hwang@samsung.com>
Fri, 15 Mar 2013 11:45:23 +0000 (20:45 +0900)
effect is stopped in all processes when call the function

Change-Id: I7938daf4f9dbfb47b833d9b73f45522b0f90a110

packaging/system-server.spec
ss_vibrator.c

index a7d87e2..52eec69 100755 (executable)
@@ -2,7 +2,7 @@
 Name:       system-server
 Summary:    System server
 Version:    0.1.65
-Release:    4
+Release:    5
 Group:      Framework/system
 License:    Apache License, Version 2.0
 Source0:    system-server-%{version}.tar.gz
index 9ea3343..8761d70 100644 (file)
@@ -53,10 +53,12 @@ static struct haptic_node *find_node(int pid)
 
        for (elem = haptic_head; elem; elem = elem->next) {
                node = elem->data;
-               if (node->pid == pid)
-                       break;
+               if (node->pid == pid) {
+                       return node;
+               }
        }
 
+       node = NULL;
        return node;
 }