If the box is deleted while creating, and the delete reason is SUCCESS, change it... 56/13156/1
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 28 Nov 2013 11:37:18 +0000 (20:37 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 28 Nov 2013 11:37:18 +0000 (20:37 +0900)
To handles it correctly by the client.

Change-Id: I568b7d7ebd0f1bc37d34e557cc0f222fb9b9da7c

packaging/liblivebox-viewer.spec
src/client.c

index 8c8143a..e8376e5 100644 (file)
@@ -1,6 +1,6 @@
 Name: liblivebox-viewer
 Summary: Library for developing the application
-Version: 0.14.7
+Version: 0.14.8
 Release: 1
 Group: HomeTF/Livebox
 License: Flora
index 8866148..6d7d011 100644 (file)
@@ -220,6 +220,9 @@ static struct packet *master_deleted(pid_t pid, int handle, const struct packet
                handler->created_cb = NULL;
                handler->created_cbdata = NULL;
 
+               if (reason == LB_STATUS_SUCCESS) {
+                       reason = LB_STATUS_ERROR_CANCEL;
+               }
                cb(handler, reason, cbdata);
        } else if (handler->id) {
                if (handler->deleted_cb) {