Change reply timing 29/13629/1
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Mon, 19 Mar 2018 08:06:05 +0000 (17:06 +0900)
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Mon, 19 Mar 2018 10:37:37 +0000 (19:37 +0900)
commitc83642c69ede418f4c4d89daa0dae4b8698e0765
treeae79ff05e6e4e49cfc5037090c214fdcab8dcd1e
parent5d05965a888976ee4b8cf65e25c01bbff8769b3c
Change reply timing

Some events were emitted in a function before it replies.

This patch changes
* The function checks parameter then reply error if it is incorrect.
* After checking parameters, the function continues to process.

The exeption is the syncronous functions such as requestSurface.

Change-Id: I168eba3e2b70d53615a4221bcbbba6bc6096c1db
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
src/app.cpp
src/app.hpp
src/main.cpp