From 166ecd973629fd40c2daac56f5f7f48ac6da80fe Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Thu, 28 Nov 2013 20:37:18 +0900 Subject: [PATCH] If the box is deleted while creating, and the delete reason is SUCCESS, change it to CANCEL. To handles it correctly by the client. Change-Id: I568b7d7ebd0f1bc37d34e557cc0f222fb9b9da7c --- packaging/liblivebox-viewer.spec | 2 +- src/client.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/liblivebox-viewer.spec b/packaging/liblivebox-viewer.spec index 8c8143a..e8376e5 100644 --- a/packaging/liblivebox-viewer.spec +++ b/packaging/liblivebox-viewer.spec @@ -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 diff --git a/src/client.c b/src/client.c index 8866148..6d7d011 100644 --- a/src/client.c +++ b/src/client.c @@ -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) { -- 2.7.4