diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index be8db1d..c1bc910 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -359,7 +359,12 @@ void windowmanager_setrole(afb_req req) noexcept pid = std::stol(a_pid); } - g_afb_instance->app.api_set_role(appid.c_str(), a_role, pid); + bool ret = g_afb_instance->app.api_set_role(appid.c_str(), a_role, pid); + if (!ret) + { + afb_req_fail(req, "failed", "Couldn't register"); + return; + } if (isFirstReq) { |