diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/app.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/app.cpp b/src/app.cpp index 20b80ae..0bdae76 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -440,7 +440,7 @@ bool App::lm_release(const struct WMAction &action) { //auto const &surface_id = this->lookup_id(drawing_name); unsigned req_num = app_list.currentSequenceNumber(); - auto const &surface_id = this->lookup_id(action.appid.c_str()); + auto const &surface_id = this->lookup_id(action.role.c_str()); if (!surface_id) { HMI_SEQ_ERROR(req_num, "Surface does not exist"); @@ -625,9 +625,12 @@ bool App::do_transition(unsigned req_num) if(!ret){ //this->emit_error(request_seq, 0 /*error_num*/, "error happens"); // test } - if (ret && sync_draw_happen){ + else if (ret && sync_draw_happen){ this->set_timer(); } + else{ + app_list.removeRequest(req_num); // HACK!!! + } return ret; } |