Revise the code.
authorSung-jae Park <nicesj.park@samsung.com>
Wed, 31 Oct 2012 04:54:44 +0000 (13:54 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Wed, 31 Oct 2012 10:39:47 +0000 (19:39 +0900)
Change-Id: If632e15c9e81dc39c330e136f220c19d42a14e90

packaging/libcom-core.spec
src/com-core_packet.c

index 1d16180..68165d4 100644 (file)
@@ -1,6 +1,6 @@
 Name: libcom-core
 Summary: Library for the light-weight IPC 
-Version: 0.2.5
+Version: 0.2.6
 Release: 1
 Group: main/util
 License: Flora License
index adfa206..ecc92e7 100644 (file)
@@ -252,12 +252,12 @@ static int service_cb(int handle, void *data)
        char *ptr;
 
        receive = find_recv_ctx(handle);
-       if (!receive)
-               receive = create_recv_ctx(handle, DEFAULT_TIMEOUT);
-
        if (!receive) {
-               ErrPrint("Couldn't find or create a receive context\n");
-               return -EIO;
+               receive = create_recv_ctx(handle, DEFAULT_TIMEOUT);
+               if (!receive) {
+                       ErrPrint("Couldn't find or create a receive context\n");
+                       return -EIO;
+               }
        }
 
        switch (receive->state) {