enum {
SYNC_START_RSP_SUCCESS = 1000,
- SYNC_START_RSP_NO_STICKER = 1001,
- SYNC_START_RSP_EXIST_STICKER = 1002
+ SYNC_START_RSP_NO_STICKER = 1001
};
struct sap_info_s {
string response_to_app;
switch (result_code) {
case SYNC_START_RSP_SUCCESS:
- case SYNC_START_RSP_EXIST_STICKER:
response_to_app = "success";
break;
case SYNC_START_RSP_NO_STICKER:
}
send_message("sync_start_response", response_to_app.c_str());
+
+ if (result_code != SYNC_START_RSP_SUCCESS)
+ service_app_exit();
} else if (msg_id == STICKER_SEND_START_REQ) {
LOGD("msg : %s", msg_id.c_str());
total_file_count = 0;
current_request.mode.clear();
current_request.category.clear();
current_request.type.clear();
+
+ service_app_exit();
} else
LOGW("unknown msg id : %s", msg_id.c_str());